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

Disassembly:
push 0xffffffffffffffff
push 0x41fd48
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x427260]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427260]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x32c], 1
mov dword [esp + 0x38], esp
xor ebx, ebx
xor eax, eax
mov ebp, 7
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x358]
call fcn.00405660
lea esi, [esp + 0x7c]
call fcn.0040d070
add esp, 0x1c
mov edi, 0x10
mov byte [esp + 0x310], 2
cmp dword [eax + 0x18], edi
jb 0x403e34
mov eax, dword [eax + 4]
jmp 0x403e37
add eax, 4
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x340]
mov word [ecx + 4], dx
call fcn.00405660
lea esi, [esp + 0x64]
call fcn.0040d070
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x403e72
mov eax, dword [eax + 4]
jmp 0x403e75
add eax, 4
push eax
call fcn.004011a0
add esp, 8
cmp dword [esp + 0x5c], edi
jb 0x403e91
mov eax, dword [esp + 0x48]
push eax
call fcn.0040e0e2
add esp, 4
mov byte [esp + 0x310], 1
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], edi
jb 0x403ebc
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040e0e2
add esp, 4
mov eax, dword [esp + 0x348]
push 0x423678
xor edi, edi
lea ecx, [esp + 0x338]
call fcn.004058c0
test eax, eax
je 0x404431
mov eax, dword [esp + 0x32c]
push 0x423678
lea ecx, [esp + 0x31c]
call fcn.004058c0
test eax, eax
je 0x404431
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x33c]
mov word [ecx + 4], dx
call fcn.00405660
call fcn.004016d0
add esp, 0x1c
cmp al, bl
jne 0x403f7e
mov esi, 8
cmp dword [esp + 0x330], esi
jb 0x403f4c
mov eax, dword [esp + 0x31c]
push eax
call fcn.0040e0e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x330], ebp
mov dword [esp + 0x32c], ebx
mov word [esp + 0x31c], cx
cmp dword [esp + 0x34c], esi
jb 0x404480
mov edx, dword [esp + 0x338]
push edx
jmp 0x404478
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x358]
call fcn.00405660
lea esi, [esp + 0x7c]
call fcn.00404e00
add esp, 0x1c
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x33c]
mov byte [esp + 0x318], 3
call fcn.00405660
mov edi, 8
mov byte [esp + 0x310], 1
cmp dword [esp + 0x78], edi
jb 0x403fe5
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040e0e2
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x33c]
mov word [ecx + 4], dx
call fcn.00405660
lea esi, [esp + 0x7c]
call fcn.00404e00
add esp, 0x1c
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x320]
mov byte [esp + 0x318], 4
call fcn.00405660
mov byte [esp + 0x310], 1
cmp dword [esp + 0x78], edi
jb 0x404047
mov eax, dword [esp + 0x64]
push eax
call fcn.0040e0e2
add esp, 4
mov eax, dword [esp + 0x338]
cmp dword [esp + 0x34c], edi
jae 0x40405e
lea eax, [esp + 0x338]
push ebx
push eax
call dword [0x421034]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x358]
mov word [ecx + 4], dx
call fcn.00405660
call fcn.00404950
add esp, 0x1c
cmp al, bl
je 0x4040f2
lea eax, [esp + 0x318]
push 0x4284b4
push eax
lea edi, [esp + 0x84]
call fcn.00406800
add esp, 8
mov byte [esp + 0x310], 5
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x4040d2
lea eax, [esp + 0x80]
lea ecx, [esp + 0xb4]
push ecx
push eax
call dword [0x421024]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x40410f
lea ecx, [esp + 0x7c]
call fcn.00405090
lea ecx, [esp + 0x318]
call fcn.00405090
lea ecx, [esp + 0x334]
call fcn.00405090
jmp 0x404480
mov byte [esp + 0x1a], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1b], bl
jmp 0x404120
xor edx, edx
lea eax, [esp + 0xe0]
mov word [esp + 0x48], dx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404140
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe4]
lea esi, [esp + 0x48]
call fcn.00405b80
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x32c], 6
mov dword [esp + 0x3c], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x358]
call fcn.00405660
lea esi, [esp + 0x44]
call fcn.0040d070
mov esi, 0x10
add esp, 0x1c
cmp dword [eax + 0x18], esi
jb 0x4041a7
mov eax, dword [eax + 4]
jmp 0x4041aa
add eax, 4
push eax
call fcn.004011a0
add esp, 4
cmp dword [esp + 0x40], esi
jb 0x4041c6
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040e0e2
add esp, 4
cmp dword [0x428494], 8
mov eax, dword [0x428480]
jae 0x4041d9
mov eax, 0x428480
mov edi, dword [0x428490]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x48]
call fcn.004058c0
test eax, eax
je 0x40433f
cmp dword [0x4284b0], 8
mov eax, dword [0x42849c]
jae 0x404208
mov eax, 0x42849c
mov edi, dword [0x4284ac]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x48]
call fcn.004058c0
test eax, eax
je 0x40433f
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x31c]
push eax
lea edi, [esp + 0x68]
call fcn.00406800
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x340]
push edx
lea edi, [esp + 0xa8]
mov byte [esp + 0x320], 7
call fcn.00406800
sub esp, 0xc
mov ecx, esp
mov byte [esp + 0x32c], 8
mov dword [esp + 0x3c], esp
xor eax, eax
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebx
lea eax, [esp + 0x68]
call fcn.00405660
call fcn.00403920
add esp, 0x1c
cmp al, 1
jne 0x404294
mov byte [esp + 0x19], al
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x68]
mov word [ecx + 4], dx
call fcn.00405660
call fcn.00403b60
add esp, 0x1c
cmp al, 1
jne 0x4042c5
mov byte [esp + 0x1b], al
test byte [esp + 0xb4], 0x10
jne 0x404317
sub esp, 0x1c
lea eax, [esp + 0xb4]
mov esi, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00405060
sub esp, 0x1c
lea ecx, [esp + 0x98]
mov esi, esp
mov dword [esp + 0x5c], esp
push ecx
mov byte [esp + 0x34c], 9
call fcn.00405060
mov byte [esp + 0x348], 8
call fcn.004044b0
add esp, 0x38
cmp al, bl
je 0x404378
lea ecx, [esp + 0x98]
call fcn.00405090
lea ecx, [esp + 0x60]
call fcn.00405090
lea ecx, [esp + 0x44]
mov byte [esp + 0x310], 5
call fcn.00405090
jmp 0x40435b
mov byte [esp + 0x310], 5
cmp dword [esp + 0x5c], 8
jb 0x40435b
mov edx, dword [esp + 0x48]
push edx
call fcn.0040e0e2
add esp, 4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xb4]
push eax
push ecx
call dword [0x42102c]
test eax, eax
jne 0x404120
jmp 0x4043a3
lea ecx, [esp + 0x98]
mov byte [esp + 0x1a], 1
call fcn.00405090
lea ecx, [esp + 0x60]
call fcn.00405090
lea ecx, [esp + 0x44]
mov byte [esp + 0x310], 5
call fcn.00405090
mov edx, dword [esp + 0x1c]
push edx
call dword [0x421054]
cmp byte [esp + 0x1a], 1
je 0x4040e9
cmp byte [esp + 0x1b], 1
jne 0x40440c
cmp byte [esp + 0x19], bl
jne 0x40440c
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x40], esp
lea eax, [esp + 0x350]
push 0x428524
push eax
call fcn.00406800
add esp, 8
call fcn.00401740
mov edi, esp
mov dword [esp + 0x40], esp
lea ecx, [esp + 0x350]
push 0x428540
push ecx
call fcn.00406800
add esp, 8
call fcn.00401740
add esp, 0x1c
lea ecx, [esp + 0x7c]
call fcn.00405090
lea ecx, [esp + 0x318]
call fcn.00405090
lea ecx, [esp + 0x334]
call fcn.00405090
mov al, 1
jmp 0x404482
mov esi, 8
cmp dword [esp + 0x330], esi
jb 0x40444f
mov edx, dword [esp + 0x31c]
push edx
call fcn.0040e0e2
add esp, 4
xor eax, eax
mov dword [esp + 0x330], ebp
mov dword [esp + 0x32c], ebx
mov word [esp + 0x31c], ax
cmp dword [esp + 0x34c], esi
jb 0x404480
mov ecx, dword [esp + 0x338]
push ecx
call fcn.0040e0e2
add esp, 4
xor al, al
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.0040e0ed
add esp, 0x300
ret