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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
cmp dword [ebp + 0xc], eax
je 0x40dbeb
cmp dword [ebp + 0x10], 4
jle 0x40dbeb
cmp esi, eax
jne 0x40df4c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 4]
sub eax, edi
cmp eax, 4
jb 0x40dbeb
mov ecx, dword [ebp + 0xc]
add edi, ecx
movzx edx, word [edi + 2]
movzx ebx, dx
cmp eax, ebx
mov dword [ebp - 8], edi
jl 0x40dbeb
movzx ecx, word [edi]
cmp cx, 1
jne 0x40dd1f
cmp dword [esi + 0x24], 0
mov edx, dword [esi + 0x20]
jg 0x40df41
jl 0x40dc39
cmp edx, 0xffffffff
ja 0x40df41
cmp dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
jg 0x40df41
jl 0x40dc51
cmp eax, 0xffffffff
ja 0x40df41
movzx eax, word [esi + 0x78]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
cmp dword [esi + 0x70], 0xffffffff
push 8
mov ecx, ebx
mov dword [ebp - 8], eax
lea eax, [edi + 4]
pop ebx
jne 0x40dc8c
cmp ecx, ebx
jl 0x40dc8c
cmp edx, 0xffffffff
jne 0x40dc88
cmp dword [esi + 0x24], 0
jne 0x40dc88
mov edx, dword [eax]
mov dword [esi + 0x20], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x24], edx
add eax, ebx
sub ecx, ebx
cmp dword [esi + 0x6c], 0xffffffff
jne 0x40dcb1
cmp ecx, ebx
jl 0x40dcb1
cmp dword [esi + 0x18], 0xffffffff
jne 0x40dcad
cmp dword [esi + 0x1c], 0
jne 0x40dcad
mov edx, dword [eax]
mov dword [esi + 0x18], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x1c], edx
add eax, ebx
sub ecx, ebx
cmp dword [esi + 0x74], 0xffffffff
jne 0x40dcca
cmp ecx, ebx
jl 0x40dcca
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 4]
add eax, ebx
mov dword [ebp - 0xc], edx
sub ecx, ebx
movzx edx, word [esi + 0x78]
mov ebx, 0xffff
cmp dx, bx
jne 0x40dce1
cmp ecx, 4
jne 0x40dce1
mov edx, dword [eax]
jmp 0x40dce4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
and eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x40df41
mov eax, dword [ebp + 8]
add eax, 0x184
cmp dword [eax], 0
je 0x40dd0a
mov ecx, dword [eax]
mov eax, dword [ecx]
push edx
call dword [eax + 0x54]
jmp 0x40dd0e
xor eax, eax
xor edx, edx
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
jmp 0x40df41
cmp cx, 0xa
jne 0x40dd51
cmp dx, 0x20
jb 0x40df41
cmp word [edi + 0xa], 0x18
jne 0x40df41
lea eax, [edi + 0x14]
lea ebx, [edi + 0x1c]
push eax
add edi, 0xc
call fcn.0040d20b
mov edi, dword [ebp - 8]
jmp 0x40df41
mov edx, 0x7075
cmp cx, dx
jne 0x40ddcb
movzx eax, word [edi + 2]
cmp ax, 0xa
jb 0x40df41
cmp dword [esi + 0x3c], 0
jne 0x40df41
add ebx, 0xfffffffb
lea eax, [ebx + 1]
push 1
push eax
call fcn.00412e2f
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40df41
push ebx
lea eax, [edi + 9]
push eax
push dword [ebp - 0x18]
call fcn.004156f0
add esp, 0xc
cmp dword [esi], 0
je 0x40ddbd
mov eax, dword [esi + 0x7c]
cmp eax, dword [edi + 5]
jne 0x40ddbd
mov eax, dword [ebp - 0x18]
push 0xfde9
mov edi, esi
call fcn.0040d097
mov edi, dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.0041218e
pop ecx
jmp 0x40df41
mov edx, 0xe57a
cmp cx, dx
je 0x40df41
mov edx, 0x9901
cmp cx, dx
jne 0x40de2a
cmp eax, 0xb
jb 0x40dbeb
mov al, byte [edi + 8]
cmp al, 1
jne 0x40ddfc
mov dword [esi + 0x28], 2
jmp 0x40de14
cmp al, 2
jne 0x40de09
mov dword [esi + 0x28], 3
jmp 0x40de14
cmp al, 3
jne 0x40de14
mov dword [esi + 0x28], 4
cmp dword [esi + 0x34], 0x63
jne 0x40df41
movzx eax, word [edi + 9]
mov dword [esi + 0x34], eax
jmp 0x40df41
cmp cx, 0x17
jne 0x40df03
cmp dword [esi + 0x28], 0
je 0x40df58
movzx ecx, word [edi + 6]
mov eax, 0x660f
cmp ecx, eax
jg 0x40dead
je 0x40dea1
sub ecx, 0x6601
je 0x40de95
dec ecx
je 0x40de89
dec ecx
je 0x40de7d
sub ecx, 6
je 0x40de71
sub ecx, 5
jne 0x40decd
mov dword [esi + 0x28], 0x106
jmp 0x40df41
mov dword [esi + 0x28], 0x105
jmp 0x40df41
mov dword [esi + 0x28], 0x104
jmp 0x40df41
mov dword [esi + 0x28], 0x103
jmp 0x40df41
mov dword [esi + 0x28], 0x102
jmp 0x40df41
mov dword [esi + 0x28], 0x107
jmp 0x40df41
sub ecx, 0x6610
je 0x40defa
sub ecx, 0xf2
je 0x40def1
sub ecx, 0x1e
je 0x40dee8
dec ecx
je 0x40dedf
sub ecx, 0xe0
je 0x40ded6
mov dword [esi + 0x28], 0x10d
jmp 0x40df41
mov dword [esi + 0x28], 0x10c
jmp 0x40df41
mov dword [esi + 0x28], 0x10b
jmp 0x40df41
mov dword [esi + 0x28], 0x10a
jmp 0x40df41
mov dword [esi + 0x28], 0x109
jmp 0x40df41
mov dword [esi + 0x28], 0x108
jmp 0x40df41
mov edx, 0x5855
cmp cx, dx
je 0x40df41
mov edx, 0x5455
cmp cx, dx
je 0x40df41
mov edx, 0x7875
cmp cx, dx
jne 0x40df41
lea ecx, [edi + 4]
mov dl, byte [ecx]
inc ecx
cmp dl, 1
jne 0x40df41
movzx edx, byte [ecx]
movzx ecx, byte [edx + ecx + 1]
sub eax, ecx
sub eax, edx
sub eax, 7
js 0x40dbeb
movzx eax, word [edi + 2]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
cmp dword [ebp + 0x10], eax
mov dword [ebp - 4], eax
jg 0x40dbf4
xor eax, eax
inc eax
jmp 0x40dbed