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

Disassembly:
push 0xffffffffffffffff
push 0x4628c8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x2c], ecx
call fcn.00401870
push eax
mov dword [esp + 0x84], 0
call fcn.0040b430
mov ebx, eax
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
mov dword [esp + 0x24], ebx
je 0x409a75
push 0
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.00459ed5
mov eax, dword [edi + 4]
test eax, eax
jbe 0x409a53
cmp eax, 0xffffffff
jae 0x409a53
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x20]
and esi, edi
call fcn.00459ef6
test esi, esi
je 0x409a75
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea esi, [esp + 0x58]
mov ecx, ebx
call fcn.0040ac80
mov esi, 1
mov dword [esp + 0x80], esi
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
xor ecx, ecx
mov byte [esp + 0x20], al
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ecx
mov byte [esp + 0x40], cl
mov byte [esp + 0x80], 2
mov al, byte [ebp]
cmp al, 0x2b
je 0x409ac2
cmp al, 0x2d
mov dword [esp + 0x1c], ecx
jne 0x409ac6
mov dword [esp + 0x1c], esi
call fcn.0043ebc6
mov ecx, dword [eax]
mov edi, dword [esp + 0xac]
mov dl, byte [ecx]
push edi
push 0x65
push ebp
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], 0x65
mov byte [esp + 0x22], 0
call fcn.0043ec30
add esp, 0xc
mov esi, eax
movsx eax, byte [esp + 0x14]
push edi
push eax
push ebp
call fcn.0043ec30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x409b0f
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x70]
cmp ecx, 0x10
mov edx, dword [esp + 0x5c]
mov eax, edx
jae 0x409b22
lea eax, [esp + 0x5c]
cmp byte [eax], 0x7f
je 0x409c7c
cmp ecx, 0x10
mov eax, edx
jae 0x409b36
lea eax, [esp + 0x5c]
cmp byte [eax], 0
jle 0x409c7c
push edi
push ebp
lea eax, [esp + 0x44]
call fcn.00408d20
test esi, esi
jne 0x409b63
mov ecx, dword [esp + 0xa8]
push 0x30
push ecx
lea ecx, [esp + 0x44]
call fcn.00407b50
jmp 0x409b98
test ebx, ebx
jne 0x409b81
mov edx, dword [esp + 0xa0]
push 0x30
push edx
lea ecx, [esp + 0x44]
call fcn.00407b50
mov dword [esp + 0xa0], ebx
mov eax, dword [esp + 0xa8]
push 0x30
mov edi, esi
push eax
sub edi, ebp
lea esi, [esp + 0x44]
call fcn.0040a700
test ebx, ebx
push 0x30
jne 0x409bb1
mov ecx, dword [esp + 0xa4]
push ecx
lea ecx, [esp + 0x44]
call fcn.00407b50
jmp 0x409be3
mov edx, dword [esp + 0xa8]
sub ebx, ebp
push edx
lea edi, [ebx + 1]
lea esi, [esp + 0x44]
call fcn.0040a700
mov eax, dword [esp + 0xa0]
push 0x30
push eax
mov edi, ebx
call fcn.0040a700
mov dword [esp + 0xa4], 0
mov ebp, dword [esp + 0x5c]
mov ebx, 0x10
cmp dword [esp + 0x70], ebx
mov dword [esp + 0xa0], 0
jae 0x409c01
lea ebp, [esp + 0x5c]
cmp dword [esp + 0x54], ebx
mov eax, dword [esp + 0x40]
jae 0x409c0f
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0043eb80
mov edi, eax
mov al, byte [ebp]
add esp, 8
cmp al, 0x7f
je 0x409c56
test al, al
jle 0x409c56
mov edx, edi
sub edx, dword [esp + 0x1c]
movsx eax, al
cmp eax, edx
jae 0x409c56
push 0
sub edi, eax
push 1
lea esi, [esp + 0x44]
call fcn.0040a700
cmp byte [ebp + 1], 0
jle 0x409c4f
add ebp, 1
mov al, byte [ebp]
cmp al, 0x7f
jne 0x409c26
cmp dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x40]
jae 0x409c64
lea ebp, [esp + 0x40]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov edi, eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
lea eax, [ecx + edx]
add eax, dword [esp + 0xa8]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x18]
add eax, edi
test ecx, ecx
jle 0x409cad
cmp ecx, eax
jbe 0x409cad
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x409cb5
mov dword [esp + 0x18], 0
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x409d96
cmp eax, 0x100
mov edx, dword [esp + 0x90]
je 0x409d1d
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x8c]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 4], edx
lea edx, [esp + 0x3c]
mov dword [eax + 8], ecx
push edx
mov eax, dword [esp + 0x2c]
call fcn.0040a420
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
add esp, 0x14
mov dword [esp + 0x18], 0
jmp 0x409dab
cmp dword [esp + 0x1c], 0
jbe 0x409d69
mov ecx, dword [esp + 0x8c]
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 4], edx
lea edx, [esp + 0x3c]
mov dword [eax + 8], ecx
push edx
mov eax, 1
call fcn.0040ab10
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
add esp, 0x14
add ebp, 1
sub edi, 1
mov dword [esp + 0xac], edi
jmp 0x409d77
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x98]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea ecx, [esp + 0x3c]
push ecx
jmp 0x409cfc
mov ebx, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
mov edx, dword [esp + 0xac]
movsx eax, byte [esp + 0x14]
push edx
push eax
push ebp
call fcn.0043ec30
add esp, 0xc
test eax, eax
je 0x409e9e
mov ecx, dword [esp + 0x20]
sub eax, ebp
add eax, 1
mov dword [esp + 0x1c], eax
push ecx
add eax, 0xffffffff
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea edx, [esp + 0x40]
mov dword [eax + 8], ebx
push edx
mov eax, ebp
call fcn.0040ab90
mov edx, dword [eax]
add esp, 0x18
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040a420
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [edx + 4]
add esp, 0x14
call eax
mov byte [esp + 0x24], al
mov ecx, dword [esp + 0x24]
push ecx
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea edx, [esp + 0x3c]
mov dword [eax + 8], ebx
push edx
mov eax, 1
call fcn.0040a420
mov edx, dword [eax]
add esp, 0x14
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040a420
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x30]
add esp, 0x14
add ebp, eax
sub dword [esp + 0xac], eax
mov edx, dword [esp + 0xac]
push edx
push 0x65
push ebp
call fcn.0043ec30
add esp, 0xc
test eax, eax
je 0x409f6e
mov ecx, dword [esp + 0x20]
sub eax, ebp
add eax, 1
mov dword [esp + 0x24], eax
push ecx
add eax, 0xffffffff
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea edx, [esp + 0x40]
mov dword [eax + 8], ebx
push edx
mov eax, ebp
call fcn.0040ab90
mov edx, dword [eax]
add esp, 0x18
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040a420
mov edx, dword [esp + 0x3c]
add esp, 0x14
test byte [edx + 0x10], 4
mov dword [esp + 0xa8], 0
mov ecx, 0x46a3d4
jne 0x409f31
mov ecx, 0x46a3d8
mov edx, dword [eax]
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0x3c]
push ecx
mov eax, 1
call fcn.0040ab10
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x38]
add esp, 0x14
add ebp, eax
sub dword [esp + 0xac], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xac]
push edx
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x40]
mov dword [eax + 8], ebx
push ecx
mov eax, ebp
call fcn.0040ab90
mov edx, dword [eax]
add esp, 0x18
push 0x30
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040a420
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
mov dword [ecx + 0x18], ebx
mov ecx, dword [esp + 0xac]
add esp, 0x14
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x98]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
push esi
call fcn.0040a420
mov edi, 0x10
add esp, 0x14
cmp dword [esp + 0x54], edi
jb 0x40a014
mov edx, dword [esp + 0x40]
push edx
call fcn.0043e445
add esp, 4
cmp dword [esp + 0x70], edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
jb 0x40a038
mov eax, dword [esp + 0x5c]
push eax
call fcn.0043e445
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0043e436
add esp, 0x70
ret