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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x42b5d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
cmp eax, edx
je 0x40d251
add esi, dword [eax + 0xb8]
add ebx, dword [eax + 0xc8]
add edi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
adc dword [ebp - 0x5c], edx
mov ecx, dword [eax + 0x20]
add dword [ebp - 0x28], ecx
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x28]
adc dword [ebp - 0x24], edx
add dword [ebp - 0x30], ecx
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x30]
adc dword [ebp - 0x2c], edx
add dword [ebp - 0x38], ecx
mov edx, dword [eax + 0x34]
mov ecx, dword [eax + 0x38]
adc dword [ebp - 0x34], edx
add dword [ebp - 0x40], ecx
mov edx, dword [eax + 0x3c]
mov ecx, dword [eax + 0x40]
adc dword [ebp - 0x3c], edx
add dword [ebp - 0x48], ecx
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x48]
adc dword [ebp - 0x44], edx
add dword [ebp - 0x50], ecx
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x50]
adc dword [ebp - 0x4c], edx
add dword [ebp - 0x58], ecx
mov edx, dword [eax + 0x54]
mov ecx, dword [eax + 0x88]
adc dword [ebp - 0x54], edx
add ecx, dword [eax + 0x6c]
add dword [ebp - 0x18], ecx
cmp byte [eax + 0xd1], 0
jne 0x40d245
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd1], 0
jne 0x40d21f
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd1], 0
jne 0x40d245
jmp 0x40d210
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd1], 0
je 0x40d210
jmp 0x40d245
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd1], 0
jne 0x40d243
jmp 0x40d230
cmp eax, dword [ecx + 8]
jne 0x40d243
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd1], 0
je 0x40d230
mov eax, ecx
cmp eax, dword [ebp - 0x14]
jne 0x40d171
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax*4 + 5]
shl eax, 4
lea edx, [esi + esi*2]
shl edx, 4
mov dword [ebp - 0x14], eax
add eax, edx
lea edx, [ebx + ebx*2]
shl edx, 4
mov dword [ebp - 0x10], eax
add eax, edx
mov edx, dword [ebp - 0x18]
xor esi, esi
lea ebx, [eax + edx + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
cmp ebx, esi
jbe 0x40d2b6
push ebx
lea esi, [ebp - 0x70]
call fcn.00403870
mov esi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
mov eax, esi
sub eax, ecx
add eax, ebx
je 0x40d2ad
push eax
push 0
push ecx
call fcn.004134a0
add esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [esi + ebx]
mov dword [ebp - 0x6c], eax
fld qword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
fmul qword [0x427400]
lea eax, [esi + edx]
fnstcw word [ebp + 0xa]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add eax, esi
mov dword [ebp - 0x10], eax
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp + 0x14], eax
mov dword [esi], 0x10001
add edx, esi
fldcw word [ebp + 0x14]
lea ebx, [esi + 0x50]
mov dword [ebp - 0x18], edx
fistp qword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 8], eax
fldcw word [ebp + 0xa]
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0xc], 0x50
mov dword [esi + 0x10], edi
mov dword [esi + 0x4c], eax
mov ecx, dword [ecx + 8]
mov edi, dword [ecx]
mov dword [ebp + 0x14], ecx
cmp edi, ecx
je 0x40d631
lea esp, [esp]
mov ecx, dword [edi + 0x10]
mov dword [ebx], ecx
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x3c]
adc ecx, dword [edi + 0x1c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
mov eax, dword [edi + 0x40]
add eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x44]
adc ecx, dword [edi + 0x24]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
mov eax, dword [edi + 0x48]
add eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x4c]
adc ecx, dword [edi + 0x2c]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov eax, dword [edi + 0x50]
add eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x54]
adc ecx, dword [edi + 0x34]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], ecx
mov eax, dword [edi + 0xb8]
mov ecx, dword [ebp - 0x14]
sub ecx, esi
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0xc8]
mov ecx, edx
sub ecx, esi
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x18], eax
mov eax, ecx
sub eax, esi
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x6c]
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x40d424
cmp dword [edi + 0x70], 0x10
lea edx, [edi + 0x5c]
jb 0x40d40d
mov edx, dword [edx]
push eax
push edx
push ecx
call fcn.00412ac0
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x18]
add esp, 0xc
add dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ecx
sub eax, esi
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x24], eax
test eax, eax
je 0x40d45a
cmp dword [edi + 0x8c], 0x10
lea edx, [edi + 0x78]
jb 0x40d446
mov edx, dword [edx]
push eax
push edx
push ecx
call fcn.00412ac0
mov ecx, dword [ebx + 0x24]
mov edx, dword [ebp - 0x18]
add esp, 0xc
add dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0xb4]
mov eax, dword [ecx]
mov dword [ebp + 8], ecx
cmp eax, ecx
je 0x40d517
lea ecx, [ecx]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
movzx edx, word [eax + 0x18]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
mov dword [ecx + 8], edx
movzx edx, word [eax + 0x1a]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x20]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x24]
mov dword [ecx + 0x14], edx
mov edx, dword [eax + 0x28]
mov dword [ecx + 0x18], edx
mov edx, dword [eax + 0x2c]
mov dword [ecx + 0x1c], edx
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x20], edx
mov edx, dword [eax + 0x34]
mov dword [ecx + 0x24], edx
mov edx, dword [eax + 0x38]
mov dword [ecx + 0x28], edx
mov edx, dword [eax + 0x3c]
mov dword [ecx + 0x2c], edx
cmp byte [eax + 0x49], 0
jne 0x40d505
mov ecx, dword [eax + 8]
cmp byte [ecx + 0x49], 0
jne 0x40d4e1
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0x49], 0
jne 0x40d502
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0x49], 0
je 0x40d4d5
jmp 0x40d502
mov ecx, dword [eax + 4]
cmp byte [ecx + 0x49], 0
jne 0x40d500
lea ebx, [ebx]
cmp eax, dword [ecx + 8]
jne 0x40d500
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0x49], 0
je 0x40d4f0
mov eax, ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebp + 8]
jne 0x40d470
mov edx, dword [ebp - 0x18]
mov ecx, dword [edi + 0xc4]
mov eax, dword [ecx]
mov dword [ebp + 8], ecx
cmp eax, ecx
je 0x40d5c8
lea ebx, [ebx]
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
movzx ecx, word [eax + 0x18]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 8], ecx
movzx ecx, word [eax + 0x1a]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x2c], ecx
cmp byte [eax + 0x49], 0
jne 0x40d5b9
mov ecx, dword [eax + 8]
cmp byte [ecx + 0x49], 0
jne 0x40d59e
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0x49], 0
jne 0x40d5b9
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0x49], 0
je 0x40d592
jmp 0x40d5b9
mov ecx, dword [eax + 4]
cmp byte [ecx + 0x49], 0
jne 0x40d5b7
cmp eax, dword [ecx + 8]
jne 0x40d5b7
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0x49], 0
je 0x40d5a7
mov eax, ecx
add edx, 0x30
cmp eax, dword [ebp + 8]
jne 0x40d530
mov dword [ebp - 0x18], edx
cmp byte [edi + 0xd1], 0
jne 0x40d625
mov eax, dword [edi + 8]
cmp byte [eax + 0xd1], 0
jne 0x40d5ff
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd1], 0
jne 0x40d625
lea ebx, [ebx]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0xd1], 0
je 0x40d5f0
jmp 0x40d625
mov eax, dword [edi + 4]
cmp byte [eax + 0xd1], 0
jne 0x40d623
jmp 0x40d610
cmp edi, dword [eax + 8]
jne 0x40d623
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd1], 0
je 0x40d610
mov edi, eax
add ebx, 0x50
cmp edi, dword [ebp + 0x14]
jne 0x40d380
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x70]
cmp eax, edx
je 0x40d650
mov ecx, dword [eax]
mov edx, dword [ebp - 0x68]
mov dword [eax], esi
mov esi, ecx
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea ecx, [ecx]
test esi, esi
je 0x40d65d
push esi
call fcn.004120d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10