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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56905c
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5d4050]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x5d4050]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 8]
add edx, 0x104
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
cmp byte [edx], 0
jne 0x40d732
xor ecx, ecx
jmp 0x40d740
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d737
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x98]
call fcn.00402bf0
mov dword [esp + 0xd0], 0
mov edx, dword [edi + 8]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
cmp byte [edx], 0
jne 0x40d77a
xor ecx, ecx
jmp 0x40d789
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d780
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x68]
call fcn.00402bf0
mov byte [esp + 0xd0], 1
mov edx, dword [edi + 8]
add edx, 0x208
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp byte [edx], 0
jne 0x40d7c9
xor ecx, ecx
jmp 0x40d7d9
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d7d0
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.00402bf0
mov byte [esp + 0xd0], 2
lea ecx, [esp + 0xa8]
push 4
push str.open
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.00402bf0
mov byte [esp + 0xd0], 3
lea eax, [esp + 0x60]
cmp dword [esp + 0x74], 0x10
mov ecx, 0x5b0924
cmovae eax, dword [esp + 0x60]
jmp 0x40d840
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d860
test dl, dl
je 0x40d85c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d860
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d840
xor eax, eax
jmp 0x40d865
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d908
lea ecx, [esp + 0x2c]
call fcn.004172e0
mov edx, eax
mov byte [esp + 0xd0], 4
lea ecx, [esp + 0x10]
call fcn.004086a0
mov esi, eax
lea eax, [esp + 0x60]
cmp eax, esi
je 0x40d8c5
cmp dword [esp + 0x74], 0x10
jb 0x40d8a6
push dword [esp + 0x60]
call fcn.00421c08
add esp, 4
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
call fcn.004028b0
cmp dword [esp + 0x24], 0x10
jb 0x40d8d8
push dword [esp + 0x10]
call fcn.00421c08
add esp, 4
mov byte [esp + 0xd0], 3
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jb 0x40d908
push dword [esp + 0x2c]
call fcn.00421c08
add esp, 4
lea edx, [esp + 0x60]
lea ecx, [esp + 0x10]
call fcn.00410ff0
lea ecx, [esp + 0x90]
mov byte [esp + 0xd0], 5
push ecx
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00403d00
add esp, 4
mov byte [esp + 0xd0], 7
cmp dword [esp + 0x24], 0x10
jb 0x40d94e
push dword [esp + 0x10]
call fcn.00421c08
add esp, 4
sub esp, 0x18
mov dword [esp + 0x3c], 0xf
mov ecx, esp
mov dword [esp + 0x38], 0
lea eax, [esp + 0x60]
mov byte [esp + 0x28], 0
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00402ac0
lea ecx, [esp + 0x44]
call fcn.004178e0
mov esi, eax
add esp, 0x18
lea eax, [esp + 0x48]
cmp eax, esi
je 0x40d9cf
cmp dword [esp + 0x5c], 0x10
jb 0x40d9b0
push dword [esp + 0x48]
call fcn.00421c08
add esp, 4
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.004028b0
cmp dword [esp + 0x40], 0x10
jb 0x40d9e2
push dword [esp + 0x2c]
call fcn.00421c08
add esp, 4
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
push 0
cmovae eax, dword [esp + 0x4c]
push eax
call fcn.0054b777
add esp, 8
cmp eax, 0xffffffff
jne 0x40da07
xor bl, bl
jmp 0x40dc77
cmp dword [esp + 0xa4], 0x10
lea ecx, [esp + 0x90]
cmovae ecx, dword [esp + 0x90]
call fcn.004180a0
test al, al
je 0x40daa1
push 1
call fcn.00421bdb
add esp, 4
lea ecx, [esp + 0x48]
cmp dword [esp + 0x5c], 0x10
mov esi, eax
cmovae ecx, dword [esp + 0x48]
push ecx
call fcn.00409490
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0x714]
mov dword [ecx + 0x534], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x714]
cmp dword [eax + 0x534], 0
jne 0x40da8b
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
call fcn.004095c0
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0x714]
mov dword [ecx + 0x534], eax
test esi, esi
je 0x40dc64
push esi
call fcn.00421c08
add esp, 4
jmp 0x40dc64
cmp dword [esp + 0xa4], 0x10
lea ecx, [esp + 0x90]
cmovae ecx, dword [esp + 0x90]
call fcn.00418160
test al, al
je 0x40db39
push 1
call fcn.00421bdb
add esp, 4
lea ecx, [esp + 0x48]
cmp dword [esp + 0x5c], 0x10
mov esi, eax
cmovae ecx, dword [esp + 0x48]
push ecx
call fcn.00409c50
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0x714]
mov dword [ecx + 0x534], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x714]
cmp dword [eax + 0x534], 0
jne 0x40db25
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
call fcn.004095c0
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0x714]
mov dword [ecx + 0x534], eax
test esi, esi
je 0x40db32
push esi
call fcn.00421c08
add esp, 4
mov bl, 1
jmp 0x40dc77
sub esp, 0x18
lea eax, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00402ac0
sub esp, 0x18
mov byte [esp + 0x100], 8
mov ecx, esp
lea eax, [esp + 0x78]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00402ac0
lea eax, [esp + 0x5c]
mov byte [esp + 0x100], 7
push eax
call fcn.0040de00
mov esi, eax
lea eax, [esp + 0x78]
cmp eax, esi
je 0x40dbe7
cmp dword [esp + 0x8c], 0x10
jb 0x40dbc2
push dword [esp + 0x78]
call fcn.00421c08
add esp, 4
push esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], 0
mov byte [esp + 0x7c], 0
call fcn.004028b0
cmp dword [esp + 0x40], 0x10
jb 0x40dbfa
push dword [esp + 0x2c]
call fcn.00421c08
add esp, 4
cmp dword [esp + 0xbc], 0x10
lea esi, [esp + 0xa8]
lea edx, [esp + 0x60]
cmovae esi, dword [esp + 0xa8]
lea ecx, [esp + 0x78]
cmp dword [esp + 0x74], 0x10
lea eax, [esp + 0x90]
push esi
cmovae edx, dword [esp + 0x64]
cmp dword [esp + 0x90], 0x10
push edx
cmovae ecx, dword [esp + 0x80]
cmp dword [esp + 0xac], 0x10
push ecx
cmovae eax, dword [esp + 0x9c]
mov ecx, edi
push eax
call fcn.0040dd70
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0x714]
mov dword [ecx + 0x534], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x714]
cmp dword [eax + 0x534], 0
setne bl
cmp dword [esp + 0x5c], 0x10
jb 0x40dc8a
push dword [esp + 0x48]
call fcn.00421c08
add esp, 4
cmp dword [esp + 0xbc], 0x10
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x40dcb8
push dword [esp + 0xa8]
call fcn.00421c08
add esp, 4
cmp dword [esp + 0x8c], 0x10
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], 0
mov byte [esp + 0xa8], 0
jb 0x40dcec
push dword [esp + 0x78]
call fcn.00421c08
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x40dd1a
push dword [esp + 0x60]
call fcn.00421c08
add esp, 4
cmp dword [esp + 0xa4], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x40dd48
push dword [esp + 0x90]
call fcn.00421c08
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00549fe1
mov esp, ebp
pop ebp
ret