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

Disassembly:
cmp eax, 1
je 0x40dbf1
cmp byte [edi + 0x100], 0
mov byte [edi + 0x14c], 0
jne 0x40d9d5
lea esp, [esp]
cmp byte [edi + 0x14c], 0
jne 0x40d9d5
cmp byte [0x4d1361], 0
jne 0x451c7d
cmp byte [0x4d18e8], 0
jne 0x451c8f
mov eax, dword [0x4d2520]
inc eax
cmp dword [edi + 0xfc], 0
mov dword [0x4d2520], eax
jne 0x40db11
cmp byte [edi + 0x101], 0
jne 0x40db11
test eax, 0x7ff
je 0x40db11
call dword [0x49c58c]
test eax, eax
jne 0x40db11
cmp byte [0x4d1362], 1
je 0x452cb4
cmp dword [edi + 0xfc], 1
je 0x452ccc
cmp dword [0x4d259c], 0
jne 0x451d01
cmp byte [0x4d1367], 1
je 0x451db5
cmp dword [edi + 0x438], 0
je 0x40d8b4
cmp byte [0x4d251c], 0
jne 0x40d8b4
mov esi, dword [edi + 0x430]
lea eax, [edi + 0x430]
mov byte [0x4d251c], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea ebx, [ebx]
test esi, esi
jne 0x40d9fc
mov edi, dword [esp + 0xc]
lea esp, [esp]
mov eax, dword [edi]
mov ecx, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x40da45
mov edi, dword [esp + 0x4c]
mov byte [0x4d251c], cl
cmp dword [esp + 0x1c], ecx
jg 0x40d9c8
cmp dword [0x4d18dc], 0
jne 0x40da6d
cmp dword [edi + 0x18c], 0
jne 0x451ffa
cmp byte [0x4d1a30], 0
jne 0x4525ee
mov eax, dword [edi + 0xfc]
cmp eax, 7
je 0x4526e4
cmp eax, 2
je 0x40dbaf
cmp eax, 8
je 0x452b74
cmp eax, 9
je 0x452b74
cmp eax, 3
je 0x40dbaf
cmp eax, 4
je 0x40dbaf
cmp eax, 5
je 0x40dbaf
cmp eax, 6
je 0x40dbaf
mov esi, dword [ebp + 8]
mov dword [edi + 0xf8], esi
lea eax, [esi + 1]
mov dword [ebp + 8], eax
cmp esi, dword [0x4d23a0]
jg 0x452a22
test esi, esi
jle 0x452a22
shl esi, 4
add esi, dword [0x4d23dc]
je 0x452a22
mov eax, dword [esi + 4]
xor edx, edx
mov ecx, 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
movsx eax, word [eax + 8]
test eax, eax
jne 0x40da5b
lea eax, [ebp + 8]
mov ecx, edi
push eax
push esi
call fcn.0040dd50
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x40dae8
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
cmp ecx, 5
jge 0x40dc79
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], 0
cmp byte [edi + 0x100], 0
je 0x40d7b0
mov eax, dword [edi + 0xf0]
mov byte [edi + 0x14c], 0
cmp eax, 1
je 0x40dc04
dec eax
mov dword [edi + 0xf0], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
jne 0x40da3d
mov edi, dword [eax + 0x14]
call dword [0x49c7c8]
mov ecx, eax
xor edx, edx
sub eax, edi
cmp edi, 0x7fffffff
ja 0x451dc9
cmp ecx, 0x7fffffff
ja 0x40da28
cdq
mov edi, dword [esi]
test edx, edx
jl 0x40da3d
jg 0x451dda
cmp eax, dword [edi + 0x18]
jae 0x451dda
mov esi, dword [esi + 4]
jmp 0x40d880
mov ecx, dword [eax]
cmp byte [ecx + 0x11], 0
jne 0x451e15
mov ecx, dword [eax + 4]
mov eax, ecx
jmp 0x40d894
cmp eax, 0x33
jne 0x40da7f
push esi
mov ecx, edi
call fcn.0040dfd0
jmp 0x40d997
cmp byte [0x4d18bc], 0
je 0x40d8c1
jmp 0x451e26
dec eax
cmp eax, 0x7e
ja case.0x40da90.2
movzx eax, byte [eax + 0x40dca0]
jmp dword [eax*4 + 0x40dc8c]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
push esi
push 0
call fcn.00411310
test eax, eax
js 0x40d997
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [ecx + eax*4]
cmp word [eax + 8], 0x7f
je 0x40d997
jmp 0x4528e7
lea eax, [esp + 0x63]
mov ecx, edi
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0
call fcn.0040bf40
jmp 0x40daab
mov eax, dword [esi + 0xc]
dec dword [eax]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x452986
push 0x10
push esi
call fcn.0041fdcd
add esp, 8
mov dword [esp + 0x38], 0
jmp 0x40d9a3
push 1
push 0
push 0
push 0
lea eax, [esp + 0xd8]
mov byte [edi + 0x101], 0
push eax
call dword [0x49c588]
test eax, eax
je 0x40d815
jmp 0x40db40
cmp dword [esp + 0xcc], 0x12
je 0x451ceb
mov ecx, dword [0x4d18d8]
cmp ecx, 0xffffffff
jne 0x451ca1
lea eax, [esp + 0xc8]
mov ecx, 0x4d18b0
push eax
call fcn.0041edf6
test eax, eax
jne 0x40db8f
lea eax, [esp + 0xc8]
push eax
call dword [0x49c754]
lea eax, [esp + 0xc8]
push eax
call dword [0x49c74c]
push 1
push 0
push 0
push 0
lea eax, [esp + 0xd8]
push eax
call dword [0x49c588]
test eax, eax
invalid
test byte [eax - 4], ch
invalid