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

Disassembly:
push 0xffffffffffffffff
push 0x42b030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov eax, dword [0x467c30]
xor eax, dword [esp + 0xfc]
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, 0x11
mov esi, 0x42c600
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0xf8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
movsb byte es:[edi], byte [esi]
jne 0x4058b7
xor eax, eax
jmp 0x4060ab
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4058cc
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4058cc
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x4058d9
push 0x42c5d8
call fcn.004072b0
add esp, 4
mov ecx, dword [ebp + 0x14]
test ecx, ecx
push ebx
mov dword [esp + 0x10], ecx
je 0x405d7b
mov edi, 0x10
jmp 0x4058f4
mov ecx, dword [esp + 0x10]
cmp dword [ebp + 0x18], edi
lea esi, [ebp + 4]
jb 0x405900
mov eax, dword [esi]
jmp 0x405902
mov eax, esi
mov bl, byte [eax]
cmp bl, 0x5c
jne 0x4059c9
cmp ecx, 1
jne 0x405921
push 0x5c
push 0x42c5b0
call fcn.004072b0
add esp, 8
cmp dword [ebp + 0x18], edi
jb 0x40592a
mov eax, dword [esi]
jmp 0x40592c
mov eax, esi
mov al, byte [eax + 1]
cmp al, 0x5c
je 0x405da6
cmp al, 0x6e
jne 0x405d70
fild dword [ebp + 0x2c]
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x4c], eax
fmul dword [ebp + 0x38]
call fcn.00421c48
mov edx, dword [ebp + 0x50]
push 0xffffffffffffffff
push 2
lea ecx, [esp + 0x84]
add edx, eax
push ecx
mov ecx, ebp
mov dword [ebp + 0x50], edx
call fcn.004044b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x114], 1
call fcn.00404240
cmp dword [esp + 0x94], edi
mov dword [esp + 0x108], 0xffffffff
jb 0x4059a6
mov edx, dword [esp + 0x80]
push edx
call fcn.00420d2b
add esp, 4
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
jmp 0x405d70
cmp bl, 0x24
jne 0x405e6d
xor ebx, ebx
mov eax, 0x42c33a
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059f0
sub eax, edx
push eax
push 0x42c33a
lea ecx, [esp + 0x1c]
call fcn.004042f0
cmp dword [esp + 0x10], 1
mov dword [esp + 0x108], 2
jne 0x405a29
push 0x24
push 0x42c5b0
call fcn.004072b0
add esp, 8
cmp dword [ebp + 0x18], edi
jb 0x405a32
mov eax, dword [esi]
jmp 0x405a34
mov eax, esi
cmp byte [eax + 1], 0x24
push 0xffffffffffffffff
je 0x405dcb
push 1
lea eax, [esp + 0xa0]
push eax
mov ecx, ebp
call fcn.004044b0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x114], 4
call fcn.00404240
cmp dword [esp + 0xb0], edi
mov byte [esp + 0x108], 2
jb 0x405a85
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00420d2b
add esp, 4
cmp dword [ebp + 0x14], ebx
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], 0
je 0x405b83
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
jb 0x405ab3
mov eax, dword [esi]
jmp 0x405ab5
mov eax, esi
cmp byte [eax], 0x3b
je 0x405b34
cmp ecx, edi
jb 0x405ac2
mov eax, dword [esi]
jmp 0x405ac4
mov eax, esi
mov dl, byte [eax]
mov byte [esp + 0x30], dl
mov eax, dword [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x1c]
call fcn.00405590
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.004044b0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x114], 6
call fcn.00404240
cmp dword [esp + 0x78], edi
mov byte [esp + 0x108], 2
jb 0x405b18
mov edx, dword [esp + 0x64]
push edx
call fcn.00420d2b
add esp, 4
cmp dword [ebp + 0x14], ebx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], 0
jne 0x405aa8
jmp 0x405b83
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.004044b0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x114], 5
call fcn.00404240
cmp dword [esp + 0x5c], edi
mov byte [esp + 0x108], 2
jb 0x405b72
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00420d2b
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405b91
lea eax, [esp + 0x18]
push 0x42c5a8
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e03
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405bb5
lea eax, [esp + 0x18]
push 0x42c5a0
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e03
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405bd9
lea eax, [esp + 0x18]
push 0x42c598
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e0a
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405bfd
lea eax, [esp + 0x18]
push 0x42c590
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e0a
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405c21
lea eax, [esp + 0x18]
push 0x42c588
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e11
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405c45
lea eax, [esp + 0x18]
push 0x42c580
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e18
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405c69
lea eax, [esp + 0x18]
push 0x42c578
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e18
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405c8d
lea eax, [esp + 0x18]
push 0x42c570
push eax
call fcn.00421208
add esp, 8
test eax, eax
je 0x405e1f
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405cb1
lea eax, [esp + 0x18]
push 0x42c568
push eax
call fcn.00421208
add esp, 8
test eax, eax
jne 0x405cfc
mov byte [ebp + 0x1c], al
mov al, byte [ebp + 0x44]
test al, al
je 0x405ce4
mov eax, dword [ebp + 0x40]
cmp eax, ebx
je 0x405ce4
push eax
call fcn.0040acf0
mov ecx, eax
call fcn.00409d40
mov dword [ebp + 0x40], ebx
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x108], 0xffffffff
jb 0x405d5f
mov edx, dword [esp + 0x18]
push edx
jmp 0x405d57
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405d0a
lea eax, [esp + 0x18]
push 0x42c560
push eax
call fcn.00421208
add esp, 8
test eax, eax
jne 0x405e26
cmp byte [ebp + 0x44], 1
mov byte [ebp + 0x1c], 1
je 0x405d41
mov eax, dword [ebp + 0x40]
cmp eax, ebx
je 0x405d41
push eax
call fcn.0040acf0
mov ecx, eax
call fcn.00409d40
mov dword [ebp + 0x40], ebx
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x108], 0xffffffff
jb 0x405d5f
mov eax, dword [esp + 0x18]
push eax
call fcn.00420d2b
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4058f0
mov ecx, dword [ebp + 0x4c]
mov eax, dword [esp + 0x110]
mov dword [eax], ecx
mov edx, dword [ebp + 0x50]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x114]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4060a8
push 0xffffffffffffffff
push 2
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
mov esi, 0x5c
call fcn.004044b0
mov dword [esp + 0x108], 0
jmp 0x405ec8
push 2
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
mov esi, 0x24
call fcn.004044b0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x114], 3
call fcn.00404240
lea ecx, [esp + 0x44]
call fcn.004095f0
lea ecx, [esp + 0x14]
jmp 0x405f10
mov esi, 0xff01
jmp 0x405e46
mov esi, 0xff02
jmp 0x405e46
mov esi, 0xff03
jmp 0x405e46
mov esi, 0xff04
jmp 0x405e46
mov esi, 0xff05
jmp 0x405e46
cmp dword [esp + 0x2c], edi
mov eax, dword [esp + 0x18]
jae 0x405e34
lea eax, [esp + 0x18]
push eax
push 0x42c548
call fcn.004072b0
mov esi, dword [esp + 0x3c]
add esp, 8
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x108], 0xffffffff
jb 0x405f20
mov edx, dword [esp + 0x18]
push edx
call fcn.00420d2b
add esp, 4
jmp 0x405f20
cmp bl, 0x81
jb 0x405e77
cmp bl, 0xa0
jbe 0x405e81
cmp bl, 0xe0
jb 0x405eda
cmp bl, 0xff
ja 0x405eda
cmp ecx, 1
jne 0x405e97
movzx eax, bl
push eax
push 0x42c524
call fcn.004072b0
add esp, 8
push 1
mov ecx, ebp
call fcn.004053d0
mov al, byte [eax]
movzx esi, bl
movzx ecx, al
push 0xffffffffffffffff
shl esi, 8
push 2
lea edx, [esp + 0x4c]
add esi, ecx
push edx
mov ecx, ebp
call fcn.004044b0
mov dword [esp + 0x108], 7
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
call fcn.00404240
lea ecx, [esp + 0x44]
jmp 0x405f10
movzx esi, bl
test esi, esi
je 0x4060a8
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
call fcn.004044b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x114], 8
call fcn.00404240
lea ecx, [esp + 0x60]
mov dword [esp + 0x108], 0xffffffff
call fcn.004095f0
mov ebx, dword [ebp + 0x28]
test ebx, ebx
jle 0x405f82
cmp esi, 0xff
mov edi, dword [ebp + 0x34]
mov eax, edi
mov dword [esp + 0x10], edi
ja 0x405f3d
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 0x4c]
mov edx, ebx
sub edx, eax
cmp ecx, edx
jle 0x405f82
cmp ecx, ebx
jg 0x405f82
mov cl, byte [esp + 0xb4]
test cl, cl
je 0x405f7a
lea eax, [esp + 0xb4]
mov edi, edi
movzx edx, byte [eax + 1]
movzx ecx, cl
shl ecx, 8
add edx, ecx
cmp edx, esi
je 0x405fce
mov cl, byte [eax + 2]
add eax, 2
test cl, cl
jne 0x405f60
mov edx, dword [ebp + 0x30]
mov dword [ebp + 0x4c], edx
jmp 0x405fc0
cmp esi, 0xff
mov edi, dword [ebp + 0x34]
mov dword [esp + 0x10], edi
jbe 0x405f97
mov dword [esp + 0x30], edi
jmp 0x405fa2
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul dword [ebp + 0x38]
call fcn.00421c48
mov edx, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x20]
add eax, edx
cmp eax, ecx
jle 0x405fce
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x4c], eax
fild dword [ebp + 0x2c]
fmul dword [ebp + 0x38]
call fcn.00421c48
add dword [ebp + 0x50], eax
fild dword [esp + 0x10]
fmul dword [ebp + 0x38]
call fcn.00421c48
mov edx, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x24]
add eax, edx
cmp eax, ecx
jg 0x4060a8
mov eax, dword [ebp + 0x40]
test eax, eax
jne 0x40602c
mov al, byte [ebp + 0x1c]
test al, al
mov eax, 0x42c51c
jne 0x406002
mov eax, 0x42c514
lea ecx, [edi + edi*2]
push ecx
push edi
push eax
call fcn.0040acf0
mov ecx, eax
call fcn.0040a830
mov ecx, dword [ebp + 0x34]
mov dl, byte [ebp + 0x1c]
mov dword [ebp + 0x48], ecx
push 0
mov ecx, eax
mov dword [ebp + 0x40], eax
mov byte [ebp + 0x44], dl
call fcn.004083c0
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x40]
push edx
push eax
push esi
call fcn.00408d60
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 0x40]
call fcn.004083f0
push eax
call fcn.00417ad0
mov edx, dword [ebp + 0x4c]
mov ecx, dword [esp + 0x114]
mov esi, dword [esp + 0x3c]
mov dword [ecx], edx
mov edx, dword [ebp + 0x50]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x118]
mov ecx, dword [esp + 0x44]
mov dword [edx], ecx
mov dword [edx + 4], esi
mov edx, dword [esp + 0x40]
mov ebx, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x50]
add ebx, edx
mov edx, dword [esp + 0x38]
add edi, edx
add esp, 4
test ecx, ecx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], edi
jle 0x4060a8
test esi, esi
jg 0x4060aa
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf8]
xor ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
call fcn.004211fa
add esp, 0xfc
ret 8