Function at 0x40d510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov dword [esp + 0x8c], ecx
mov edi, dword [ecx + 0x60]
mov dword [esp + 0x5c], 0xdbdcda0f
mov dword [esp + 0x60], 0x1ed6dfe9
mov dword [esp + 0x64], 0xe2d6c8f4
mov dword [esp + 0x68], 0x2f1b250a
mov dword [esp + 0x6c], 0x2719182c
mov dword [esp + 0x70], 0x27201821
mov dword [esp + 0x74], 0x24eb39e3
mov dword [esp + 0x78], 0xc0f2b12
mov dword [esp + 0x7c], 0xd2d0d43c
mov word [esp + 0x80], 0xadd2
mov dword [esp + 0x82], 0
mov word [esp + 0x86], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x2b
ja 0x40d5cb
nop
nop
nop
nop
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax + 0x5c]
push dword [esp + 8]
push eax
call fcn.0040e200
add esp, 8
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x5c], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x2c
jb 0x40d5a0
mov dword [esp + 4], 0x37202c06
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 3
ja 0x40d61b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax + 4]
push dword [esp + 8]
push eax
call fcn.0040e180
add esp, 8
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 4], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 4
jb 0x40d5f0
mov esi, dword [esp + 0xa4]
mov dword [esp + 8], 0xfec4b0b3
mov dword [esp + 0xc], 0xc2feaca8
mov dword [esp + 0x10], 0xc5cec493
mov dword [esp + 0x14], 0xcac1c6c9
mov dword [esp + 0x18], 0x82c9c5c6
mov dword [esp + 0x1c], 0xdcefa9a7
mov dword [esp + 0x20], 0xdfd1c3da
mov dword [esp + 0x24], 0xdef69cc4
mov dword [esp + 0x28], 0xccd7d7c9
mov dword [esp + 0x2c], 0xacd9cfdb
mov dword [esp + 0x30], 0xa7def5aa
mov dword [esp + 0x34], 0xe2ada9a9
mov dword [esp + 0x38], 0x92ba94a8
mov dword [esp + 0x3c], 0x8ea4d3f5
mov dword [esp + 0x40], 0xcbe9b0bb
mov dword [esp + 0x44], 0xbabeb0b6
mov dword [esp + 0x48], 0xbfc6e2c6
mov dword [esp + 0x4c], 0x8bbdb7bb
mov dword [esp + 0x50], 0xde8188bf
mov word [esp + 0x54], 0x1bfa
mov word [esp + 0x5a], 0
mov dword [esp + 0x56], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x53
ja 0x40d706
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
push dword [esp]
push eax
call fcn.0040e100
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x54
jb 0x40d6e0
mov eax, dword [esp + 0xa8]
add esi, edi
movzx ecx, byte [esp + 8]
mov ebx, esi
test cl, cl
je 0x40d72b
lea edx, [esp + 9]
mov ebx, esi
mov byte [ebx], cl
inc ebx
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x40d720
mov byte [ebx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40d74b
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], cl
inc ebx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40d740
mov byte [ebx], 0
movzx eax, byte [esp + 4]
test al, al
je 0x40d76b
lea ecx, [esp + 5]
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40d760
mov edx, dword [esp + 0xac]
mov byte [ebx], 0
movzx eax, byte [esp + 0x5c]
test al, al
mov dword [esp + 0x88], esi
je 0x40d79b
lea ecx, [esp + 0x5d]
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40d790
mov byte [ebx], 0
mov esi, dword [esp + 0xb0]
mov ecx, esi
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
and esi, 0xfffffffc
lea eax, [ebx + esi]
add esi, edx
mov edx, ecx
and edx, 3
mov ecx, edx
shr ecx, 1
mov ebp, esi
mov edi, eax
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov ecx, dword [esp + 0xb0]
test cl, 1
je 0x40d7e5
movzx ecx, byte [esi + edx - 1]
mov byte [eax + edx - 1], cl
mov dword [esp + 8], 0x2a29cdcf
mov dword [esp + 0xc], 0x3e3e0c16
mov dword [esp + 0x10], 0x76390808
mov dword [esp + 0x14], 0x7f0370
mov dword [esp + 0x18], 0x7774007b
mov dword [esp + 0x1c], 0xa3a54803
mov word [esp + 0x20], 0xa5a7
mov byte [esp + 0x22], 0x92
mov word [esp + 0x23], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x5c]
cmp eax, 0x1c
ja 0x40d86b
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x5c]
movzx eax, byte [esp + eax + 8]
push dword [esp + 0x5c]
push eax
call fcn.0040e280
add esp, 8
mov ecx, dword [esp + 0x5c]
mov byte [esp + ecx + 8], al
inc dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
cmp eax, 0x1d
jb 0x40d840
add ebx, dword [esp + 0xb0]
movzx eax, byte [esp + 8]
test al, al
mov edx, dword [esp + 0x88]
je 0x40d89b
lea ecx, [esp + 9]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40d890
mov byte [ebx], 0
sub ebx, edx
mov eax, dword [esp + 0x8c]
add dword [eax + 0x60], ebx
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret 0x10