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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
lea eax, [esp + 0x1e]
lea ecx, [esp + 0x1f]
lea edx, [esp + 0x4c]
lea esi, [esp + 0x28]
push eax
push ecx
push edx
push dword [ebp + 0x10]
push esi
call fcn.00412860
add esp, 0x14
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x10]
push 0
push 0xa
call fcn.00408f00
lea eax, [ebp + 0xc]
lea ecx, [ebp + 8]
test byte [esp + 0x10], 1
lea edx, [esp + 0x11]
je 0x40d2f8
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], 0
mov byte [esp + 0xb], 1
mov byte [esp + 0x1d], 0x45
mov esi, dword [ecx]
mov edi, dword [eax]
jmp 0x40d338
inc eax
mov dword [esi + 0xc], eax
mov edi, dword [esp + 4]
test esi, esi
je 0x40d350
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40d370
xor ebx, ebx
test edi, edi
jne 0x40d358
jmp 0x40d393
mov bl, 1
xor esi, esi
test edi, edi
je 0x40d393
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x40d3b0
mov dword [esp + 4], edi
test bl, bl
jne 0x40d3e5
jmp 0x40d57a
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
sete bl
je 0x40d38d
mov ecx, esi
mov esi, ecx
test edi, edi
jne 0x40d358
mov dword [esp + 4], 0
test bl, bl
je 0x40d3e5
jmp 0x40d57e
mov eax, dword [edi]
mov dword [esp + 0x34], esi
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], 0
cmp eax, 0xffffffff
sete al
je 0x40d3dd
mov dword [esp + 4], edi
cmp bl, al
je 0x40d57e
movzx eax, byte [esp + 0x10]
test al, 1
mov ebx, dword [esp + 0xc]
je 0x40d420
mov edi, dword [esp + 0x14]
lea ecx, [ebx + edi]
cmp dword [esp + 0x24], ecx
je 0x40d42d
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40d4da
movzx eax, byte [eax]
jmp 0x40d4eb
mov edi, eax
shr edi, 1
lea ecx, [ebx + edi]
cmp dword [esp + 0x24], ecx
jne 0x40d3ff
test edi, edi
jle 0x40d43f
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.00408f00
jmp 0x40d460
lea ecx, [edi + edi]
test al, 1
jne 0x40d454
mov eax, ecx
add al, cl
mov byte [esp + 0x10], al
lea eax, [esp + 0x11]
jmp 0x40d45c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xfffffffe
dec eax
test byte [esp + 0x10], 1
mov edx, 0xa
cmove eax, edx
test cl, 1
je 0x40d4a0
mov edx, dword [esp + 0x14]
mov ebx, eax
sub ebx, edx
ja 0x40d4ad
test cl, 1
jne 0x40d55a
mov ecx, eax
add cl, al
mov byte [esp + 0x10], cl
lea ecx, [esp + 0x11]
jmp 0x40d562
mov edx, ecx
shr edx, 1
and edx, 0x7f
mov ebx, eax
sub ebx, edx
jbe 0x40d486
lea ecx, [esp + 0x10]
push 0
push ebx
call fcn.00408f00
test byte [esp + 0x10], 1
lea ebx, [esp + 0x11]
je 0x40d4c8
mov ebx, dword [esp + 0x18]
add edi, ebx
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40d40b
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
movsx ecx, byte [esp + 0x1f]
movsx edx, byte [esp + 0x1e]
movsx eax, al
lea edi, [esp + 0x4c]
push edi
lea edi, [esp + 0x40]
push edi
lea edi, [esp + 0x28]
push edi
lea edi, [esp + 0x78]
push edi
lea edi, [esp + 0x38]
push edi
push edx
push ecx
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x2c], ebx
push ebx
lea ecx, [esp + 0x41]
push ecx
lea ecx, [esp + 0x33]
push ecx
push eax
call fcn.00412a20
add esp, 0x30
test eax, eax
jne 0x40d57e
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40d330
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov edi, dword [esp + 4]
jmp 0x40d338
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov byte [ecx + eax], 0
test byte [esp + 0x10], 1
lea ebx, [esp + 0x11]
jne 0x40d4c4
jmp 0x40d4c8
mov dword [esp + 4], edi
mov edi, dword [esp + 0xc]
movzx eax, byte [esp + 0x28]
test al, 1
je 0x40d595
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40d59b
jmp 0x40d5c3
shr eax, 1
test eax, eax
je 0x40d5c3
cmp byte [esp + 0xb], 0
je 0x40d5c3
mov eax, dword [esp + 0x20]
mov ecx, eax
lea edx, [esp + 0x6c]
sub ecx, edx
cmp ecx, 0x9f
jg 0x40d5c3
mov ecx, dword [esp + 0x3c]
lea edx, [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax], ecx
push dword [ebp + 0x14]
push dword [esp + 0x28]
push edi
call fcn.0042b3c0
add esp, 0xc
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
mov eax, dword [ebp + 0x18]
movsd qword [eax], xmm0
mov edx, dword [esp + 0x20]
movzx eax, byte [esp + 0x28]
mov ebx, eax
and bl, 1
mov dword [esp + 0xc], eax
mov edi, esi
je 0x40d600
mov eax, dword [esp + 0x2c]
jmp 0x40d602
shr eax, 1
mov esi, edx
lea ecx, [esp + 0x6c]
sub esi, ecx
cmp esi, 5
mov esi, edi
jl 0x40d6ed
test eax, eax
je 0x40d6ed
lea edi, [edx - 4]
lea eax, [esp + 0x6c]
cmp edi, eax
seta bh
cmp eax, edx
je 0x40d66a
test bh, bh
je 0x40d66a
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x70]
mov eax, edi
mov edx, edi
nop dword [eax]
mov esi, dword [ecx - 4]
mov edi, dword [edx]
mov dword [ecx - 4], edi
mov dword [edx], esi
add edx, 0xfffffffc
lea esi, [ecx + 4]
cmp ecx, edx
mov ecx, esi
jb 0x40d640
movzx ecx, byte [esp + 0x28]
mov dword [esp + 0xc], ecx
mov ebx, ecx
and bl, 1
mov esi, dword [esp + 0x34]
mov edi, eax
test bl, bl
je 0x40d67c
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x6c]
cmp edi, eax
ja 0x40d688
jmp 0x40d6d2
lea edx, [esp + 0x29]
lea eax, [esp + 0x6c]
cmp edi, eax
jbe 0x40d6d2
test bl, bl
je 0x40d692
mov ecx, dword [esp + 0x2c]
jmp 0x40d69b
mov eax, dword [esp + 0xc]
shr al, 1
movzx ecx, al
add ecx, edx
jmp 0x40d6bd
mov eax, ecx
sub eax, edx
xor ebx, ebx
cmp eax, 2
setge bl
add edx, ebx
mov eax, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x38], eax
cmp eax, edi
jae 0x40d6d2
movzx ebx, byte [edx]
mov eax, ebx
dec al
cmp al, 0x7d
ja 0x40d6a0
mov eax, dword [esp + 0x38]
cmp dword [eax], ebx
je 0x40d6a0
jmp 0x40d6e4
movzx ecx, byte [edx]
mov eax, ecx
dec al
cmp al, 0x7d
ja 0x40d6ed
mov eax, dword [edi]
dec eax
cmp eax, ecx
jb 0x40d6ed
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
test esi, esi
je 0x40d707
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x40d717
xor ebx, ebx
cmp dword [esp + 4], 0
jne 0x40d73a
jmp 0x40d7a6
mov bl, 1
xor esi, esi
cmp dword [esp + 4], 0
jne 0x40d73a
jmp 0x40d7a6
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
xor ecx, ecx
cmp eax, 0xffffffff
sete bl
cmove esi, ecx
cmp dword [esp + 4], 0
je 0x40d7a6
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 4]
cmp eax, dword [ecx + 0x10]
mov eax, dword [esp + 4]
jne 0x40d76a
mov dword [esp + 4], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [esp + 4]
call edi
cmp eax, 0xffffffff
je 0x40d7a6
test bl, bl
jne 0x40d774
mov eax, dword [ebp + 0x14]
or byte [eax], 2
test byte [esp + 0x10], 1
je 0x40d787
push dword [esp + 0x18]
call fcn.00407a50
add esp, 4
test byte [esp + 0x28], 1
je 0x40d79a
push dword [esp + 0x30]
call fcn.00407a50
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
test bl, bl
jne 0x40d76e
jmp 0x40d774