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

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1218
call fcn.00445d50
sub esp, eax
mov ebp, edx
mov edx, ecx
mov eax, dword [esp + eax]
lea ebx, [esp + 0xa08]
lea esi, [esp + 0xc8]
mov ecx, 0x100
mov edi, ebx
mov dword [esp + 0x2c], eax
xor eax, eax
test edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x20
mov edi, esi
rep stosd dword es:[edi], eax
lea edi, [esp + 0x148]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edi, [esp + 0x348]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea edi, [ebp + edx]
mov eax, ebp
je 0x40d516
movzx ecx, byte [eax]
add eax, 1
add dword [esp + ecx*4 + 0xa08], 1
cmp edi, eax
jne 0x40d504
mov eax, dword [esp + 0x123c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 8
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1238]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x548]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x248]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00441a30
mov edx, dword [esp + 0x1234]
mov eax, dword [esp + 0x1230]
test edx, edx
lea ecx, [eax + edx*4]
je 0x40d585
movzx edx, byte [eax]
add eax, 4
add dword [esp + edx*4 + 0x348], 1
cmp ecx, eax
jne 0x40d573
lea edi, [esp + 0x748]
xor eax, eax
mov ecx, 0xb0
mov dword [esp + 0x2c], eax
add dword [esp + 0x34c], 1
lea ebx, [esp + 0x748]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xe08]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0xf
mov dword [esp + 4], 0x40
mov edi, ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x348]
add dword [esp + 0x350], 1
add dword [esp + 0x448], 1
mov dword [esp], eax
add dword [esp + 0x498], 1
call fcn.0041d400
lea eax, [esp + 0x108]
lea edx, [esp + 0x448]
mov dword [esp + 8], 0xe
mov dword [esp + 0x10], eax
lea eax, [esp + 0xe08]
mov dword [esp], edx
mov dword [esp + 4], 0x40
mov dword [esp + 0xc], eax
call fcn.0041d400
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x748], edx
mov edx, dword [esp + 0xe4]
mov dword [esp + 0x760], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x74c], edx
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x768], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x750], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x770], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x754], edx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x778], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x758], edx
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x780], eax
mov dword [esp + 0x75c], edx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x764], edx
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x76c], edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x774], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x77c], edx
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x784], edx
lea edx, [esp + 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call fcn.0041e040
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x108]
mov dword [esp + 0x148], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x14c], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x150], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x154], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x158], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x15c], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x160], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x164], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x168], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x16c], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x170], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x174], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x178], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x17c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x180], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x184], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x188], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18c], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x190], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x194], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x198], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x19c], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x1a0], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x1a4], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x1a8], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x1ac], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x1b0], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x1b4], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x1b8], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x1bc], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x1c0], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x1c4], edx
lea edx, [esp + 0x1c8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x40
call fcn.0041e040
mov eax, dword [esp + 0x2c]
mov ecx, 0x10
mov edx, dword [esp + 0xe4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x74c], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x748], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x78c], edx
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x788], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x7cc], edx
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x7c8], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x80c], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x8cc], edx
mov dword [esp + 0x8c8], eax
xor eax, eax
nop
movzx edx, byte [esi + eax]
mov byte [ebx + eax*8 + 0x80], dl
movzx edx, byte [esp + eax + 0xd0]
mov byte [ebx + eax*8 + 0x100], dl
movzx edx, byte [esp + eax + 0xd8]
mov byte [ebx + eax*8 + 0x1c0], dl
add eax, 1
cmp eax, 8
jne 0x40d970
mov eax, dword [esp + 0x123c]
mov dword [esp + 4], 0x2c0
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1238]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xe08]
mov dword [esp + 8], eax
call fcn.004404a0
mov eax, dword [esp + 0x123c]
mov dword [esp + 4], 0x40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1238]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xe08]
mov dword [esp + 8], eax
lea eax, [esp + 0x108]
mov dword [esp], eax
call fcn.004404a0
mov eax, dword [esp + 0x1230]
mov edi, dword [esp + 0x1234]
mov dword [esp + 0x34], eax
lea eax, [eax + edi*4]
test edi, edi
mov dword [esp + 0x38], eax
je 0x40db61
mov dword [esp + 0x3c], ebp
nop
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1238]
mov eax, dword [eax]
movzx edi, al
shr eax, 8
mov dword [esp + 0x2c], eax
mov eax, dword [edx]
xor edx, edx
movzx ebp, byte [esp + edi + 0xc8]
mov ecx, eax
mov ebx, eax
movzx eax, word [esp + edi*2 + 0x148]
shr ebx, 3
add ebx, dword [esp + 0x123c]
mov dword [esp + 0x30], ecx
and ecx, 7
shld edx, eax, cl
shl eax, cl
test cl, 0x20
movzx esi, byte [ebx]
je 0x40da81
mov edx, eax
xor eax, eax
add ebp, dword [esp + 0x30]
or esi, eax
mov dword [ebx + 4], edx
mov dword [ebx], esi
mov edx, dword [esp + 0x1238]
mov eax, dword [esp + 0x2c]
mov ebx, ebp
mov ecx, ebp
mov dword [edx], ebp
shr ebx, 3
add ebx, dword [esp + 0x123c]
and ecx, 7
xor edx, edx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
movzx esi, byte [ebx]
je 0x40dabd
mov edx, eax
xor eax, eax
or esi, eax
add ebp, dword [edi*4 + 0x46a1a0]
cmp edi, 0x17
mov dword [ebx], esi
mov esi, dword [esp + 0x1238]
mov dword [ebx + 4], edx
mov dword [esi], ebp
ja 0x40db4e
mov eax, dword [esp + 0x2c]
add eax, dword [edi*4 + 0x46a140]
je 0x40db4e
mov edi, dword [esp + 0x3c]
add eax, edi
mov edx, edi
mov dword [esp + 0x30], eax
movzx ecx, byte [edx]
xor edi, edi
movzx eax, byte [esp + ecx + 0x248]
movzx esi, word [esp + ecx*2 + 0x548]
mov ecx, ebp
and ecx, 7
mov dword [esp + 0x2c], eax
mov eax, ebp
shr eax, 3
add eax, dword [esp + 0x123c]
shld edi, esi, cl
shl esi, cl
test cl, 0x20
movzx ebx, byte [eax]
je 0x40db2d
mov edi, esi
xor esi, esi
or ebx, esi
add ebp, dword [esp + 0x2c]
add edx, 1
cmp edx, dword [esp + 0x30]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x1238]
mov dword [eax], ebp
jne 0x40daf2
mov dword [esp + 0x3c], edx
add dword [esp + 0x34], 4
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x38]
jne 0x40da30
add esp, 0x121c
pop ebx
pop esi
pop edi
pop ebp
ret