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

Disassembly:
mov ecx, dword [0xf33f68]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x10c]
cmp eax, dword [ecx + 8]
jbe 0x586099
sub esp, 0x18c
mov eax, dword [esp + 0x198]
test eax, eax
je 0x584ce2
test eax, 0x200
jne 0x584ce2
lea ecx, [0xc80e44]
mov edx, dword [esp + 0x190]
jmp 0x584d13
mov ecx, dword [esp + 0x190]
mov dword [esp], ecx
mov edx, dword [esp + 0x194]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004bb070
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x198]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x7c], edx
cmp dword [0xef3b88], ecx
jne 0x584d55
mov eax, dword [0xef3b8c]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00404f40
movzx eax, byte [esp + 0xc]
test al, al
jne 0x585682
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x7c]
cmp dword [0xef3b90], ecx
jne 0x584d8f
mov eax, dword [0xef3b94]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00404f40
movzx eax, byte [esp + 0xc]
test al, al
jne 0x585558
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x7c]
cmp dword [0xef3b70], ecx
jne 0x584dc9
mov eax, dword [0xef3b74]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00404f40
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5854a3
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x7c]
cmp dword [0xef3b78], ecx
jne 0x584e03
mov eax, dword [0xef3b7c]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00404f40
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5853c5
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x7c]
cmp dword [0xef3ba8], ecx
jne 0x584e35
mov eax, dword [0xef3bac]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00404f40
movzx eax, byte [esp + 0xc]
test al, al
jne 0x58534a
mov eax, dword [esp + 0x198]
mov ecx, eax
and eax, 0x1f
nop
cmp eax, 6
jbe 0x5851a1
cmp eax, 0x17
je 0x584f88
cmp eax, 0x18
jne 0x584f2a
mov eax, dword [esp + 0x1a8]
cmp eax, 0x12
jne 0x584e75
mov eax, dword [esp + 0x194]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor edx, edx
jmp 0x586004
cmp eax, 0x13
je 0x584edf
cmp eax, 0x16
jne 0x584e92
mov eax, dword [esp + 0x194]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor edx, edx
jmp 0x585f79
mov eax, dword [esp + 0x194]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040add0
mov eax, dword [esp + 8]
lea ecx, [0xc7f944]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov eax, dword [esp + 0x194]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00583f10
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebx
add esp, 0x18c
ret
cmp eax, 0x19
jne 0x5852e6
test ecx, 0x200
jne 0x584f4a
lea eax, [0xc80e44]
mov edx, dword [esp + 0x190]
jmp 0x584f79
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov edx, dword [esp + 0x194]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004bb070
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, dword [esp + 0x198]
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], edx
xor ebx, ebx
jmp 0x5858c9
test ecx, 0x200
jne 0x584f9f
lea eax, [0xc80e44]
mov edx, dword [esp + 0x190]
jmp 0x584fc7
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov edx, dword [esp + 0x194]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004bb070
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov eax, dword [eax + 0x28]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x50]
mov dword [esp], ecx
call eax
cmp dword [esp + 4], 8
je 0x585112
lea edi, [esp + 0x94]
xor eax, eax
call fcn.0046ca7a
mov ecx, dword [esp + 0x194]
mov edx, dword [ecx + 4]
nop
test edx, edx
je 0x5850c1
cmp edx, 1
je 0x58503c
mov dword [esp + 0x4c], edx
lea eax, [0x785940]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00450b30
mov eax, dword [esp + 0xc]
mov dword [esp + 0xf0], eax
xor ecx, ecx
jmp 0x585733
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call fcn.004b9320
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea edi, [esp + 0xc]
lea esi, [esp + 0x94]
call fcn.0046cf54
call fcn.005860b0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebx
add esp, 0x18c
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f8b4]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov eax, dword [esp + 0x190]
cmp dword [0xef36b4], eax
jne 0x585132
mov eax, dword [esp + 0x194]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
jmp 0x58515c
mov dword [esp], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
call fcn.004b6190
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f8b4]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
cmp eax, 1
jne 0x585222
mov eax, dword [esp + 0x194]
movzx eax, byte [eax]
test al, al
je 0x5851eb
mov eax, dword [0xed1848]
mov ecx, dword [0xed184c]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov eax, dword [0xed1840]
mov ecx, dword [0xed1844]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
cmp eax, 2
jb 0x5852e6
cmp eax, 3
ja 0x58525c
cmp eax, 2
jne 0x585245
mov eax, dword [esp + 0x194]
mov eax, dword [eax]
mov ecx, eax
sar eax, 0x1f
jmp 0x5852a5
mov ecx, dword [esp + 0x194]
movsx eax, byte [ecx]
mov ecx, eax
sar ecx, 0x1f
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x5852a5
cmp eax, 4
jne 0x585278
mov ecx, dword [esp + 0x194]
movsx eax, word [ecx]
mov ecx, eax
sar ecx, 0x1f
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x5852a5
cmp eax, 5
jne 0x585293
mov ecx, dword [esp + 0x194]
mov eax, dword [ecx]
mov ecx, eax
sar ecx, 0x1f
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x5852a5
mov ecx, dword [esp + 0x194]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
mov eax, ecx
mov ecx, edx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040ad30
mov eax, dword [esp + 8]
lea ecx, [0xc7f8fc]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
lea eax, [0x7c2e21]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], 0xf
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.0040add0
mov eax, dword [esp + 8]
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
lea ecx, [0xc7f3b8]
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], eax
add esp, 0x18c
ret
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.004b94d0
mov eax, dword [esp + 0x10]
lea ecx, [0x7b9de0]
cmp eax, ecx
jne 0x585715
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.005830e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebx
add esp, 0x18c
ret
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.004b94d0
mov eax, dword [esp + 0x10]
lea ecx, [0x787a20]
cmp eax, ecx
jne 0x5856ff
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
cmp ecx, 2
jl 0x58541e
mov edx, dword [eax]
mov ebx, dword [edx]
cmp ebx, 2
jg 0x58541e
jge 0x58545d
cmp dword [edx + 4], 0x28
jl 0x58545d
lea eax, [0x7cab1b]
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], 0x19
mov eax, dword [esp + 0x114]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.0040add0
mov eax, dword [esp + 8]
xor ecx, ecx
lea edx, [0xc7f3b8]
xor ebx, ebx
jmp 0x585480
mov eax, dword [eax + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f95c]
xor edx, edx
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], edx
mov dword [esp + 0x1c0], eax
add esp, 0x18c
ret
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.004b94d0
mov eax, dword [esp + 0x10]
lea ecx, [0x79bc00]
cmp eax, ecx
jne 0x5856e9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], edx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x174], eax
lea eax, [0x79bb80]
mov dword [esp], eax
lea eax, [esp + 0x168]
mov dword [esp + 4], eax
call fcn.0040aba0
mov eax, dword [esp + 8]
lea ecx, [0xc7f8e4]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.004b94d0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x178]
xor eax, eax
call fcn.0046ca7b
mov eax, dword [esp + 0x5c]
lea ecx, [0x7b7600]
cmp eax, ecx
jne 0x5856d3
lea edi, [esp + 0x178]
call fcn.0046cf5e
lea edi, [esp + 0x80]
lea esi, [esp + 0x178]
call fcn.0046cf5e
cmp dword [esp + 0x1ac], 0x18
je 0x5855f4
lea edi, [esp]
lea esi, [esp + 0x178]
call fcn.0046cf5e
call fcn.00584020
movzx eax, byte [esp + 0x14]
test al, al
je 0x58563b
lea edi, [esp]
lea esi, [esp + 0x80]
call fcn.0046cf5e
call fcn.00584160
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebx
add esp, 0x18c
ret
lea edi, [esp]
lea esi, [esp + 0x80]
call fcn.0046cf5e
call fcn.00584080
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebx
add esp, 0x18c
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f8b4]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x778160]
mov dword [esp + 8], eax
call fcn.0040aa00
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x778160]
mov dword [esp + 8], eax
call fcn.0040aa00
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x778160]
mov dword [esp + 8], eax
call fcn.0040aa00
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x778160]
mov dword [esp + 8], eax
call fcn.0040aa00
inc ecx
mov eax, dword [esp + 0xf0]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jge 0x585824
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov edx, dword [esp + 0x194]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x198]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.004b9320
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0xf0]
lea edx, [ecx + eax*8]
mov dword [esp + 0xec], edx
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
lea edi, [esp + 0xc]
lea esi, [esp + 0x94]
call fcn.0046cf54
call fcn.005860b0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0xf0]
lea ebx, [edx + ecx*8 + 4]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0xec]
mov dword [edx], eax
mov eax, dword [0xf34078]
test eax, eax
je 0x5857ef
mov eax, edi
call fcn.0046c7e0
mov dword [edi], esi
mov edx, dword [ebx]
mov dword [edi + 4], edx
mov edi, eax
mov dword [ebx], esi
test ebp, ebp
je 0x58572b
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], ebp
mov dword [esp + 0x1c0], edi
add esp, 0x18c
ret
movzx ecx, byte [esp + 0x1b0]
test cl, cl
je 0x585875
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f92c]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f914]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov ecx, dword [esp + 0x68]
lea ebx, [ecx + 1]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x68], ebx
mov ecx, dword [eax + 0x64]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x68]
cmp dword [esp + 4], eax
jle 0x585989
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edx
lea edi, [esp + 0x134]
lea esi, [esp + 8]
call fcn.0046cf0e
lea edi, [esp + 0xac]
lea esi, [esp + 0x134]
call fcn.0046cf0e
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x5858ba
lea eax, [0x7d2f42]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], 0x21
mov eax, dword [esp + 0x10c]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.0040add0
mov eax, dword [esp + 8]
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
lea ecx, [0xc7f3b8]
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], eax
add esp, 0x18c
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x64]
mov edx, dword [esp + 0x78]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x585d2f
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov dword [esp + 4], 0
call ecx
lea edi, [esp + 0x134]
lea esi, [esp + 8]
call fcn.0046cf0e
mov eax, dword [esp + 0x144]
cmp dword [0xef3ba0], eax
je 0x5859e7
xor eax, eax
jmp 0x585aa1
mov ecx, dword [esp + 0x148]
mov edx, dword [0xef3ba4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404f40
movzx eax, byte [esp + 0xc]
test al, al
jne 0x585a14
xor eax, eax
jmp 0x585aa1
mov eax, dword [esp + 0x190]
mov dword [esp], eax
mov ecx, dword [esp + 0x194]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x198]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
call fcn.004b8e50
mov eax, dword [esp + 0x18]
mov ecx, eax
and eax, 0x1f
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp eax, 0x17
jne 0x585a5c
mov eax, dword [ebx + 4]
jmp 0x585a94
mov dword [esp + 0x70], ecx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xe8], edx
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004b96c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xe8]
mov ebx, dword [esp + 0xf0]
test eax, eax
jg 0x585c59
mov eax, 1
mov ecx, dword [esp + 0x58]
sub ecx, eax
test ecx, ecx
je 0x585c08
mov dword [esp + 0x50], eax
cmp ecx, 1
je 0x585ae4
mov dword [esp + 0x54], ecx
lea eax, [0x785940]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00450b30
mov eax, dword [esp + 0xc]
mov dword [esp + 0xf0], eax
xor ecx, ecx
jmp 0x585d93
mov ecx, dword [esp + 0x190]
mov dword [esp], ecx
mov ecx, dword [esp + 0x194]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x198]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004b8e50
mov eax, dword [esp + 0x10]
mov dword [esp + 0xe8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xf0], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x40]
mov ebx, dword [ebx + 0x2c]
mov ebp, dword [esp + 0x78]
mov dword [esp], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 4], ebp
call ebx
lea edi, [esp + 0x134]
lea esi, [esp + 8]
call fcn.0046cf0e
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x150]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x7bcbc6]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
call fcn.004b2a10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00581fe0
lea edi, [esp + 0x11c]
lea esi, [esp + 8]
call fcn.0046cf54
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
lea edi, [esp + 0xc]
lea esi, [esp + 0x11c]
call fcn.0046cf54
call fcn.005860b0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebx
add esp, 0x18c
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f8b4]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
cmp dword [0xef36b4], edx
jne 0x585c6b
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
jmp 0x585c87
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004b6190
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
call fcn.0057e7e0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x585cc1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x74]
jmp 0x585cea
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jb 0x585d80
mov edx, dword [esp + 0x48]
sub edx, eax
mov ebx, edx
neg ebx
sar ebx, 0x1f
and ebx, eax
sub ecx, eax
mov ebp, dword [esp + 0x74]
lea eax, [ebp + ebx]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f8b4]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f8b4]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
call fcn.0046c8b0
mov edx, dword [esp + 0x64]
lea ecx, [edx + 1]
mov eax, dword [esp + 0xf0]
mov edx, dword [esp + 0x54]
cmp ecx, edx
jge 0x585f33
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x190]
mov dword [esp], edx
mov ebx, dword [esp + 0x194]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x198]
mov dword [esp + 8], ebp
lea esi, [eax + ecx*8]
mov dword [esp + 0xec], esi
mov edi, dword [esp + 0x50]
add edi, ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0xc], edi
call fcn.004b8e50
mov eax, dword [esp + 0x10]
mov dword [esp + 0xe8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xe4], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x40]
mov ebp, dword [ebx + 0x2c]
mov esi, dword [esp + 0x78]
mov dword [esp], esi
mov edi, dword [esp + 0x6c]
mov dword [esp + 4], edi
call ebp
lea edi, [esp + 0x134]
lea esi, [esp + 8]
call fcn.0046cf0e
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x150]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0xf0]
lea ebp, [ebx + edx*8 + 4]
mov dword [esp + 0xe0], ebp
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x7bcbc6]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
call fcn.004b2a10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00581fe0
lea edi, [esp + 0x11c]
lea esi, [esp + 8]
call fcn.0046cf54
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
lea edi, [esp + 0xc]
lea esi, [esp + 0x11c]
call fcn.0046cf54
call fcn.005860b0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0xec]
mov dword [ebp], eax
mov eax, dword [0xf34078]
test eax, eax
jne 0x585eeb
mov eax, dword [esp + 0xe0]
jmp 0x585efe
call fcn.0046c7e0
mov dword [edi], edx
mov eax, dword [esp + 0xe0]
mov ebp, dword [eax]
mov dword [edi + 4], ebp
mov dword [eax], edx
test ecx, ecx
je 0x585d85
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], ebx
add esp, 0x18c
ret
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.0040ae50
mov eax, dword [esp + 0xc]
lea ecx, [0xc7f914]
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
add esp, 0x18c
ret
inc edx
cmp edx, eax
jge 0x585fc4
lea ebx, [edx + ecx]
cmp byte [ebx], 0x7f
jbe 0x585f78
lea eax, [0x7d6b9c]
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], 0x24
mov eax, dword [esp + 0x104]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.0040add0
mov eax, dword [esp + 8]
xor ecx, ecx
lea edx, [0xc7f3b8]
xor ebx, ebx
jmp 0x585fe0
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040add0
mov eax, dword [esp + 8]
lea ecx, [0xc7f944]
xor edx, edx
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], edx
mov dword [esp + 0x1c0], eax
add esp, 0x18c
ret
inc edx
cmp edx, eax
jge 0x58605a
movzx ebx, byte [ecx + edx]
lea ebp, [ebx - 0x30]
xchg ebp, eax
cmp al, 9
xchg ebp, eax
jbe 0x586003
cmp bl, 0x20
je 0x586003
lea eax, [0x7dc7fc]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], 0x28
mov eax, dword [esp + 0xfc]
mov dword [esp], eax
mov dword [esp + 4], 0x28
call fcn.0040add0
mov eax, dword [esp + 8]
xor ecx, ecx
lea edx, [0xc7f3b8]
xor ebx, ebx
jmp 0x586076
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040add0
mov eax, dword [esp + 8]
lea ecx, [0xc7f944]
xor edx, edx
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1b4], ecx
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], edx
mov dword [esp + 0x1c0], eax
add esp, 0x18c
ret
call fcn.0046b3d0
jmp fcn.00584ca0