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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4199df
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x423018]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
mov dword [ebx], esi
mov dword [esp + 0x30], esi
je 0x406815
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push 0x41bd6c
push eax
mov eax, dword [ecx]
call eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x30]
lea edx, [esp + 0x54]
push edx
push edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x4c], esi
call eax
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x406842
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov ecx, dword [esp + 0x54]
cmp ecx, dword [esp + 0x44]
jle 0x40684f
or dword [ebx], 1
mov edx, dword [edi]
mov ecx, dword [edx + 0x34]
lea eax, [esp + 0x8c]
push eax
push edi
call ecx
test dword [esp + 0x8c], 0x2000
mov dword [esp + 0x20], eax
je 0x406a96
mov edi, dword [esp + 0x94]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00409170
cmp eax, esi
jge 0x406892
push eax
call fcn.00405f30
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0xbc], esi
mov eax, dword [esp + 0x18]
push 1
push eax
call dword [0x41b210]
cmp eax, esi
jge 0x4068b5
push eax
call fcn.00405f30
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push 1
push edx
call dword [0x41b20c]
cmp eax, esi
jge 0x4068d1
push eax
call fcn.00405f30
mov ebx, dword [esp + 0x24]
sub ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
add ebx, 1
cmp eax, esi
mov dword [esp + 0x24], ebx
je 0x406a63
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test dword [esp + 0x5c], 0x2000
mov dword [esp + 0x20], eax
je 0x406a63
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.00409170
cmp eax, esi
jge 0x406926
push eax
call fcn.00405f30
lea esi, [esp + 0x10]
mov byte [esp + 0xb8], 1
call fcn.00408930
test ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
jbe 0x406a0f
jmp 0x406950
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x14]
call fcn.00408980
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x406976
push eax
call dword [0x41b230]
mov ecx, dword [esi]
push eax
push ecx
call dword [0x41b22c]
cmp dword [esi], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
je 0x40698b
test eax, eax
je 0x406a59
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
mov byte [esp + 0xb8], 2
jbe 0x4069fe
jmp 0x4069a0
mov eax, ebx
lea edi, [esp + 0x10]
call fcn.00408980
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x4069b7
xor esi, esi
jmp 0x4069ca
push eax
call dword [0x41b230]
mov edx, dword [edi]
push eax
push edx
call dword [0x41b22c]
mov esi, eax
cmp dword [edi], 0
je 0x4069d7
test esi, esi
je 0x406a59
mov edi, dword [esp + 0x18]
push 0
push 0x400
push esi
push edi
call fcn.00418584
cmp eax, 1
push esi
je 0x406a2f
call dword [0x41b220]
add ebx, 1
cmp ebx, dword [esp + 0x2c]
jb 0x4069a0
mov eax, dword [esp + 0x18]
push eax
call dword [0x41b220]
mov eax, dword [ebp + 0x10]
or dword [eax], 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406a6d
push eax
call dword [0x41b1fc]
test eax, eax
jl 0x406a6d
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x41b200]
jmp 0x406a6d
mov esi, dword [0x41b220]
call esi
push edi
mov byte [esp + 0xbc], 1
call esi
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x406950
jmp 0x406a0f
push 0x8007000e
call fcn.00405f30
cmp ebx, esi
jbe 0x406a6d
mov eax, dword [ebp + 0x10]
or dword [eax], 2
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406a96
push eax
call dword [0x41b1fc]
test eax, eax
jl 0x406a96
mov edx, dword [esp + 0x14]
push edx
call dword [0x41b200]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add eax, 8
xor edx, edx
cmp ecx, edx
jne 0x406aab
mov dword [esp + 0x2c], edx
jmp 0x406ab7
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 4
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], edx
mov dword [esp + 0x40], edx
jbe 0x406e64
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x3c], 0
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
add esi, 8
test edi, edi
je 0x406ec5
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edi
sar eax, 4
cmp eax, dword [esp + 0x40]
jbe 0x406ec5
cmp edi, ecx
jbe 0x406aff
call dword [0x41b178]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], edi
add edi, eax
cmp edi, dword [esi + 8]
ja 0x406b16
cmp edi, dword [esi + 4]
jae 0x406b1c
call dword [0x41b178]
cmp edi, dword [esi + 8]
jb 0x406b27
call dword [0x41b178]
push edi
lea ecx, [esp + 0x78]
xor esi, esi
push ecx
mov word [esp + 0x7c], si
call dword [0x41b1e4]
cmp eax, esi
jl 0x406eca
mov dword [esp + 0xb8], 3
mov eax, dword [esp + 0x7c]
cmp eax, esi
je 0x406e34
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], esi
mov edx, dword [eax]
mov edx, dword [edx]
push 0x41bd3c
push eax
call edx
cmp eax, esi
mov dword [esp + 0x20], eax
jl 0x406e29
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x50]
mov dword [esp + 0x50], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp dword [esp + 0x50], 1
mov dword [esp + 0x20], eax
je 0x406e1d
mov dword [esp + 0x34], esi
mov byte [esp + 0xb8], 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x74]
push edx
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push edx
push eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x70], esi
mov dword [esp + 0x88], esi
call eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x406c27
lea edx, [esp + 0x9c]
push edx
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
mov dword [esp + 0x5c], esi
mov dword [esp + 0x48], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
cmp word [esp + 0x4c], si
mov dword [esp + 0x20], eax
jne 0x406c44
or dword [ebx], 4
test dword [esp + 0x5c], 0x2000
mov eax, dword [ebx]
je 0x406e0a
or eax, 8
mov dword [ebx], eax
jmp 0x406e0a
cmp word [esp + 0x38], 0xffff
jne 0x406e0a
test dword [esp + 0x5c], 0x2000
je 0x406e0a
test dword [esp + 0x9c], 0x2000
je 0x406ebd
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.00409170
test eax, eax
jl 0x40688c
lea esi, [esp + 0x10]
mov byte [esp + 0xb8], 5
call fcn.00408930
mov edi, dword [esp + 0xa4]
mov ebx, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], 0
call fcn.00409170
test eax, eax
jl 0x40688c
lea esi, [esp + 0x28]
mov byte [esp + 0xb8], 6
call fcn.00408930
test ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
jbe 0x406db3
jmp 0x406cf0
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x10]
call fcn.00408980
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x406d16
push eax
call dword [0x41b230]
mov ecx, dword [esi]
push eax
push ecx
call dword [0x41b22c]
cmp dword [esi], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x84], eax
je 0x406d2e
test eax, eax
je 0x406a59
xor ebx, ebx
mov byte [esp + 0xb8], 7
cmp dword [esp + 0x24], ebx
jbe 0x406da2
mov edi, edi
mov eax, ebx
lea edi, [esp + 0x28]
call fcn.00408980
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x406d57
xor esi, esi
jmp 0x406d6a
push eax
call dword [0x41b230]
mov edx, dword [edi]
push eax
push edx
call dword [0x41b22c]
mov esi, eax
cmp dword [edi], 0
je 0x406d77
test esi, esi
je 0x406a59
mov edi, dword [esp + 0x14]
push 0
push 0x400
push esi
push edi
call fcn.00418584
cmp eax, 1
push esi
je 0x406e90
call dword [0x41b220]
add ebx, 1
cmp ebx, dword [esp + 0x24]
jb 0x406d40
mov eax, dword [esp + 0x14]
push eax
call dword [0x41b220]
mov eax, dword [ebp + 0x10]
or dword [eax], 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x406ddd
push eax
call dword [0x41b1fc]
test eax, eax
jl 0x406ddd
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x41b200]
test eax, eax
jl 0x406ddd
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406e07
push eax
call dword [0x41b1fc]
test eax, eax
jl 0x406e07
mov edx, dword [esp + 0x10]
push edx
call dword [0x41b200]
test eax, eax
jl 0x406e07
mov dword [esp + 0x10], 0
mov ebx, dword [ebp + 0x10]
mov byte [esp + 0xb8], 3
mov eax, dword [esp + 0x34]
push eax
call dword [0x41b220]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x74]
push eax
call dword [0x41b1e8]
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0xbc], 0xffffffff
call dword [0x41b1e8]
mov eax, dword [esp + 0x40]
add dword [esp + 0x3c], 0x10
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
jb 0x406ad0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x406e74
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [0x41b220]
call esi
push edi
mov byte [esp + 0xbc], 6
call esi
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
jb 0x406cf0
jmp 0x406db3
or dword [ebx], 8
jmp 0x406e0a
call fcn.00409320
push eax
mov word [esp + 0x78], 0xa
mov dword [esp + 0x80], eax
call fcn.00405f30
int3