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

Disassembly:
push 0xffffffffffffffff
push 0x42eaec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf44
mov eax, dword [0x434990]
xor eax, dword [esp + 0xf50]
push ebx
push ebp
mov ebp, dword [esp + 0xf5c]
mov dword [esp + 0xf48], eax
mov eax, dword [esp + 0xf64]
test eax, eax
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x24], 0
jne 0x4099bb
test edi, edi
jne 0x4099e6
xor eax, eax
jmp 0x40a011
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4099c0
sub ecx, esi
mov dword [esp + 0x1c], ecx
je 0x4099b4
lea edx, [esp + 0x4b8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4099d8
test edi, edi
je 0x409a1a
mov eax, edi
lea edx, [eax + 1]
jmp 0x4099f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099f0
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x4099b4
lea edx, [esp + 0x4b8]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409a10
test ebp, ebp
jne 0x409a3f
push 0x431478
lea eax, [esp + 0x4bc]
push eax
call dword [0x42f1cc]
test eax, eax
jne 0x409a3f
mov dword [esp + 0x24], 1
jmp 0x409a53
mov esi, dword [0x42f248]
lea ecx, [esp + 0x4b8]
push ecx
call esi
test ebp, ebp
jne 0x409a85
call dword [0x42f394]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4099b4
xor eax, eax
jmp 0x409a70
mov cl, byte [esp + eax + 0x4b8]
mov byte [esp + eax + 0x3b4], cl
inc eax
test cl, cl
jne 0x409a70
jmp 0x409ae4
push ebx
mov dword [esp + 0x24], ebx
call dword [0x42f398]
test eax, eax
jg 0x4099b4
test edi, edi
jne 0x409abf
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x4b8]
push edx
push eax
lea eax, [esp + 0x3bc]
push 0x43172c
push eax
call fcn.004250d9
add esp, 0x10
jmp 0x409ae4
lea edx, [esp + 0x3b4]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409ad0
lea ecx, [esp + 0x3b4]
push ecx
call esi
mov eax, dword [esp + 0x24]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], ebp
je 0x409cd6
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push ebx
mov dword [esp + 0x58], 0x1c
mov dword [esp + 0x5c], 0x10
mov dword [esp + 0x60], 0x8000000
call dword [0x42f378]
push 0x4c
call fcn.004251ca
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
mov dword [esp + 0xf5c], ebp
je 0x409b49
mov edi, 0x4317d6
mov eax, ebx
call fcn.004085a0
mov esi, eax
jmp 0x409b4b
xor esi, esi
mov ebp, dword [esp + 0xf70]
test ebp, ebp
mov dword [esp + 0xf5c], 0xffffffff
mov dword [esi + 4], 1
mov dword [esp + 0x14], 0
je 0x409bbc
push 1
push 0
push 4
call fcn.004140c0
add esp, 8
push eax
mov eax, dword [esp + 0xf7c]
push 0
push 0x431478
push eax
push 0
push 0
push ebx
mov edi, esi
call fcn.00409660
push 0
push 0
push 0
push 0
push 0x4315cc
push 0
push 1
push ebx
call fcn.00409660
add esp, 0x40
mov dword [esp + 0x14], 2
mov eax, dword [esp + 0xf78]
test eax, eax
jl 0x409bcc
push 0
push eax
jmp 0x409bf0
cmp eax, 0xffffffff
jne 0x409bda
mov dword [esi + 0x18], 0
jmp 0x409bfd
cmp eax, 0xfffffffe
jne 0x409be8
mov dword [esi + 0x18], 1
jmp 0x409bfd
cmp eax, 0xfffffffd
jne 0x409bfd
push 1
push eax
mov edx, ebp
call fcn.00409410
add esp, 8
mov dword [esi + 0x18], eax
call dword [0x42f078]
mov dword [esp + 0x1c], eax
xor ebx, ebx
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov edx, 1
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x409cc5
mov cl, bl
push 0x4314a4
lea edx, [esp + 0x44]
add cl, 0x41
push edx
mov byte [esp + 0x48], cl
mov byte [esp + 0x49], 0
call dword [0x42f084]
lea eax, [esp + 0x40]
push eax
call dword [0x42f07c]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0xa08]
mov ebp, eax
push ecx
lea ecx, [esp + 0x44]
mov edx, ebp
call fcn.004097c0
add esp, 4
test eax, eax
je 0x409cc5
mov ecx, dword [esp + 0xf80]
test ecx, ecx
jne 0x409c86
cmp ebp, 2
je 0x409c82
cmp ebp, 5
jne 0x409c86
xor ecx, ecx
jmp 0x409c8a
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push 0
push eax
push 0
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0xa18]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push ebp
push ecx
mov edi, esi
call fcn.00409660
lea edx, [esp + 0x60]
push edx
mov edi, eax
call fcn.004087c0
add esp, 0x24
inc ebp
mov dword [edi + 0x44], eax
mov dword [esp + 0x14], ebp
inc ebx
cmp ebx, 0x20
jl 0x409c10
mov eax, esi
jmp 0x40a011
lea eax, [esp + 0x3b4]
push eax
lea ecx, [esp + 0x5c0]
push 0x431470
xor ebx, ebx
push ecx
mov dword [esp + 0x20], ebx
call fcn.004250d9
add esp, 0xc
push ebx
push 5
lea edx, [esp + 0x7cc]
push edx
push ebx
call dword [0x42f220]
mov dword [esp + 0x10], ebx
nop
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x5c0]
push ecx
call dword [0x42f1d0]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x409fd1
test ebp, ebp
jne 0x409e60
mov ebp, dword [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push ebp
mov dword [esp + 0x58], 0x1c
mov dword [esp + 0x5c], 0x10
mov dword [esp + 0x60], 0x8000000
call dword [0x42f378]
push 0x4c
call fcn.004251ca
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
mov dword [esp + 0xf5c], 1
je 0x409d94
lea edi, [esp + 0x3b4]
mov eax, ebp
call fcn.004085a0
mov edi, eax
jmp 0x409d96
xor edi, edi
mov eax, dword [esp + 0xf78]
test eax, eax
mov dword [esp + 0xf5c], 0xffffffff
mov dword [esp + 0x18], edi
jl 0x409dc5
mov ecx, dword [esp + 0xf70]
push ecx
push 0
push eax
lea edx, [esp + 0x5c8]
push edx
jmp 0x409dfa
cmp eax, 0xffffffff
jne 0x409dd3
mov dword [edi + 0x18], 0
jmp 0x409e05
cmp eax, 0xfffffffe
jne 0x409de1
mov dword [edi + 0x18], 1
jmp 0x409e05
cmp eax, 0xfffffffd
jne 0x409e05
mov eax, dword [esp + 0xf70]
push eax
push 1
push 0xfffffffffffffffd
lea ecx, [esp + 0x5c8]
push ecx
call fcn.00409320
add esp, 0x10
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0xf70]
test eax, eax
je 0x409e60
push 1
push 0
push 4
call fcn.004140c0
mov edx, dword [esp + 0xf80]
add esp, 8
push eax
push 0
push 0x431798
push edx
push 0
push ebx
push ebp
call fcn.00409660
push 0
push 0
push 0
push 0
push 0x4315cc
push 0
inc ebx
push ebx
push ebp
call fcn.00409660
add esp, 0x40
inc ebx
mov dword [esp + 0x14], ebx
jmp 0x409e60
lea eax, [esp + 0x19c]
push 0x431798
push eax
call fcn.00425136
add esp, 8
test eax, eax
je 0x409fa3
lea ecx, [esp + 0x19c]
push str._s.dll
push ecx
call fcn.00425136
add esp, 8
test eax, eax
je 0x409fa3
test byte [esp + 0x170], 2
jne 0x409fa3
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x28], ebp
jge 0x409ebe
mov dword [esp + 0x28], 1
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x19c]
mov byte [esp + eax + 0x6c0], cl
inc eax
test cl, cl
jne 0x409ed0
lea edx, [esp + 0x19c]
push edx
lea eax, [esp + 0x3b8]
push eax
lea ecx, [esp + 0x74]
push 0x43172c
push ecx
call fcn.004250d9
mov edi, dword [esp + 0x20]
add esp, 0x10
cmp edi, ebx
jne 0x40a03c
test byte [esp + 0x170], 0x10
je 0x40a04f
cmp dword [esp + 0x28], ebx
je 0x409f3c
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x18]
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.004091f0
add esp, 8
mov ebp, eax
mov ebx, 1
xor eax, eax
mov edi, dword [esp + 0x18]
push 0
push ebp
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, ebx
neg ecx
lea edx, [esp + 0x6d0]
push edx
mov edx, dword [esp + 0x28]
sbb ecx, ecx
and ecx, eax
push ecx
push edx
push eax
call fcn.00409660
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 0x20
test eax, eax
jne 0x409f83
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x6c]
push ecx
mov dword [esi + 0x40], eax
call fcn.004087c0
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x18]
add esp, 4
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x170]
push edx
push eax
call dword [0x42f118]
test eax, eax
jne 0x409e60
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x42f1c4]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x409d10
mov edi, dword [esp + 0xf68]
test edi, edi
je 0x40a00f
mov esi, dword [edi + 0x38]
test esi, esi
je 0x40a00c
mov ecx, esi
call fcn.004086f0
push esi
call fcn.00425131
add esp, 4
mov dword [edi + 0x38], 0
mov dword [edi + 0x38], ebp
mov eax, ebp
mov ecx, dword [esp + 0xf54]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf48]
xor ecx, dword [esp + 0xf58]
pop ebp
pop ebx
add esp, 0xf50
jmp fcn.0042aa52
cmp edi, 1
jne 0x40a04f
test byte [esp + 0x170], 0x10
jne 0x409fa3
lea ecx, [esp + 0x6c]
push 0x2e
push ecx
mov dword [esp + 0x40], 1
call fcn.004251d8
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40a401
push 0x431468
push esi
xor edi, edi
call dword [0x42f1cc]
test eax, eax
jne 0x40a33e
lea edx, [esp + 0x2c]
push edx
push 0x42f45c
mov esi, 1
push esi
push eax
push 0x42f48c
mov dword [esp + 0x44], esi
mov byte [esp + 0x2c4], al
call dword [0x42f3f8]
test eax, eax
jl 0x40a134
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push 0x42f4bc
push eax
call dword [ecx]
test eax, eax
jl 0x40a12a
push 0x104
lea eax, [esp + 0xd4c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x78]
push ecx
push edi
push edi
call dword [0x42f070]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
push edi
lea ecx, [esp + 0xd4c]
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jl 0x40a120
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
push 2
lea ecx, [esp + 0xc0c]
push ecx
push 0x104
lea ecx, [esp + 0x2bc]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [esp + 0x2b0]
test al, al
je 0x40a2e7
lea edx, [esp + 0x2b0]
push 0x3a
push edx
call fcn.004251d8
push 0x4314a4
push eax
call fcn.00425136
add esp, 0x10
test eax, eax
jne 0x40a1e8
cmp dword [esp + 0x10], esi
je 0x409fa3
xor eax, eax
mov cl, byte [esp + eax + 0x2b0]
mov byte [esp + eax + 0x6c], cl
inc eax
test cl, cl
jne 0x40a174
lea eax, [esp + 0x6c]
push eax
call dword [0x42f07c]
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 0x18]
lea edx, [esp + 0xa08]
mov esi, eax
push edx
lea ecx, [esp + 0x70]
mov edx, esi
call fcn.004097c0
mov ebp, eax
mov eax, dword [esp + 0xf84]
add esp, 4
test eax, eax
jne 0x40a1d4
cmp esi, 2
je 0x40a1c5
cmp esi, 5
jne 0x40a1d4
xor ebx, ebx
mov dword [esp + 0x24], 1
jmp 0x40a30d
mov ebx, dword [esp + 0xf84]
mov dword [esp + 0x24], 1
jmp 0x40a30d
lea eax, [esp + 0x8c8]
push eax
lea ecx, [esp + 0x2b4]
push ecx
call dword [0x42f1d0]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a2d9
test byte [esp + 0x8c8], 0x10
mov eax, dword [esp + 0x10]
je 0x40a2c8
cmp eax, esi
je 0x409fa3
lea edx, [esp + 0x7c4]
push edx
lea eax, [esp + 0x2b4]
push eax
call dword [0x42f1cc]
test eax, eax
jne 0x40a284
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x2b0]
mov byte [esp + eax + 0x6c], cl
inc eax
test cl, cl
jne 0x40a240
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x18]
push 3
push eax
push 0x43143c
call fcn.00408960
mov ebx, dword [esp + 0xf90]
add esp, 0xc
push edi
mov dword [esp + 0x28], 1
mov ebp, eax
call dword [0x42f1c4]
jmp 0x40a30d
xor eax, eax
jmp 0x40a290
mov cl, byte [esp + eax + 0x2b0]
mov byte [esp + eax + 0x6c], cl
inc eax
test cl, cl
jne 0x40a290
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x18]
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.004091f0
mov ebx, dword [esp + 0xf8c]
add esp, 8
push edi
mov ebp, eax
call dword [0x42f1c4]
jmp 0x40a30d
test eax, eax
je 0x409fa3
push edi
call dword [0x42f1c4]
jmp 0x40a30d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409fa3
jmp 0x40a30d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409fa3
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x18]
xor ebx, ebx
push ebx
push eax
lea edx, [esp + 0x74]
push edx
call fcn.00408960
add esp, 0xc
mov ebp, eax
test ebp, ebp
mov edi, 1
mov dword [esp + 0x34], edi
jne 0x40a37d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
lea edx, [esp + 0x6c]
push edx
call fcn.004094e0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40a37d
mov dword [esp + 0x38], 0
jmp 0x40a37d
push 0x431434
push esi
call dword [0x42f1cc]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x40a36b
test eax, eax
jne 0x40a364
test byte [esp + 0x170], 0x10
je 0x409fa3
mov edi, 1
jmp 0x40a37d
test eax, eax
jne 0x40a37d
test byte [esp + 0x170], 0x10
je 0x409fa3
mov eax, dword [esp + 0xf7c]
test eax, eax
je 0x40a3ad
cmp eax, 1
je 0x40a3bb
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40a3a9
lea eax, [esp + 0x6c]
push eax
call fcn.00424a30
add esp, 4
mov edi, eax
neg edi
sbb edi, edi
inc edi
test edi, edi
je 0x40a3bb
lea ecx, [esp + 0x6c0]
push ecx
call dword [0x42f24c]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40a3e4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40a3e4
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x18]
push 1
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00408960
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x409f41
test ebx, ebx
je 0x409f41
lea eax, [esp + 0x6c]
jmp 0x409f43
cmp edi, ebx
jne 0x40a3c3
test byte [esp + 0x170], 0x10
je 0x409fa3
jmp 0x40a3c3