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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x274
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3cb0]
xor ebx, ebx
mov ecx, 1
cmp dword [esi + 0xdc0], ecx
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], eax
je 0x59c059
cmp dword [esi + 0x19c], ebx
mov dword [esp + 0x1c], ebx
je 0x59c05d
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0xdd4], ebx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x2124], ebx
mov byte [esi + 0x371c], bl
je 0x59c0d0
mov eax, dword [esi + 0xdc4]
mov edx, dword [esi + 0x1ee4]
add edx, eax
cmp dword [esi + 0x1ef8], edx
jne 0x59c0d0
mov edx, dword [esi + 0x1fc0]
mov al, byte [eax + edx]
cmp al, 6
je 0x59c09c
cmp al, 0x12
jne 0x59c0d0
mov eax, dword [esi + 0x2114]
cmp eax, 6
mov dword [esp + 0x38], ecx
je 0x59c0b5
cmp eax, 0x12
jne 0x59c0d0
cmp eax, 6
jne 0x59c0c1
mov dword [esi + 0x2114], 4
jmp 0x59c0d0
cmp eax, 0x12
jne 0x59c0d0
mov dword [esi + 0x2114], 7
mov eax, dword [esi + 0x2114]
cmp eax, 6
jne 0x59c0f5
call fcn.0059bcd0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004f2719
mov esp, ebp
pop ebp
ret
cmp eax, 0x12
jne 0x59c14e
cmp dword [esi + 0x2138], ebx
jne 0x59c10b
push esi
call fcn.00577560
add esp, 4
push 0x30
lea eax, [esi + 0x36f0]
push ebx
push eax
mov dword [esi + 0x2124], ebx
mov dword [esi + 0x2128], ebx
call fcn.004f9810
mov ecx, dword [esi + 0x1ef8]
mov edx, dword [esi + 0x1fc8]
add esp, 0xc
mov word [edx + ecx*2], bx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004f2719
mov esp, ebp
pop ebp
ret
mov edi, 2
cmp eax, edi
jne 0x59c1ac
cmp dword [esi + 0x3cc4], ebx
mov eax, dword [esi + 0x212c]
mov dword [esi + 0x2120], ebx
je 0x59c187
push eax
push esi
call fcn.0059bf90
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call fcn.0059b3f0
add esp, 4
jmp 0x59ca17
mov ecx, dword [esi + 0x3020]
mov edx, dword [esi + eax*4 + 0x4a24]
push ecx
call edx
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.0059b3f0
add esp, 4
jmp 0x59ca17
cmp eax, ecx
jne 0x59c320
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ecx
je 0x59c247
mov edx, dword [esi + 0x3020]
mov eax, dword [esi + 0x4d00]
push 0x10
push 0x10
lea ecx, [esi + 0x2720]
push ecx
push 0x20
push edx
call eax
mov ecx, dword [esi + 0x2b90]
mov edx, dword [esi + 0x2b94]
mov eax, dword [esi + 0x2b98]
mov dword [esi + 0x36fc], ecx
mov ecx, dword [esi + 0x2b9c]
mov dword [esi + 0x3704], edx
mov edx, dword [esi + 0x2ba4]
add esp, 0x14
cmp dword [esi + 0x2134], edi
mov dword [esi + 0x370c], eax
mov dword [esi + 0x3714], ecx
mov dword [esi + 0x2124], edx
jne 0x59c247
mov edx, dword [esi + 0x4d30]
push 0x180
lea eax, [esi + 0x2820]
push eax
lea ecx, [esi + 0x19e0]
push ecx
call edx
add esp, 0xc
mov edi, dword [esi + 0x2134]
neg edi
sbb edi, edi
and edi, 3
cmp edi, 4
jge 0x59ca17
mov ebx, edi
shl ebx, 4
lea eax, [esi + edi*4 + 0x1f58]
add ebx, 0x5f1f80
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3020]
mov ecx, edi
sar ecx, 1
shl ecx, 5
mov edx, edi
and edx, 1
add ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebx]
movsx ecx, byte [esi + ecx + 0x36c0]
movzx edx, byte [ecx + 0x5f1fec]
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
mov edx, dword [esi + 0x4abc]
lea ecx, [esp + 0x48]
push ecx
push eax
mov dword [esp + 0x34], eax
call edx
add esp, 0x10
cmp dword [esi + 0x3cc4], 0
lea eax, [esp + 0x40]
push eax
je 0x59c2e0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edi
push edx
push esi
call fcn.0059bf10
add esp, 0x14
jmp 0x59c2f5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edx*4 + 0x4a5c]
push ecx
call eax
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
push edi
push esi
call fcn.0059b1e0
add dword [esp + 0x20], 4
add ebx, 0x10
add esp, 0xc
add edi, 1
cmp ebx, 0x5f1fc0
jl 0x59c273
jmp 0x59ca17
cmp eax, ebx
jne 0x59c457
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ebx
je 0x59c3bb
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x4d00]
push 0x10
push 0x10
lea edx, [esi + 0x2620]
push edx
push 0x20
push eax
call ecx
mov edx, dword [esi + 0x2b80]
mov eax, dword [esi + 0x2b84]
mov ecx, dword [esi + 0x2b88]
mov dword [esi + 0x36fc], edx
mov edx, dword [esi + 0x2b8c]
mov dword [esi + 0x3704], eax
mov eax, dword [esi + 0x2ba0]
add esp, 0x14
cmp dword [esi + 0x2134], edi
mov dword [esi + 0x370c], ecx
mov dword [esi + 0x3714], edx
mov dword [esi + 0x2124], eax
jne 0x59c3bb
mov eax, dword [esi + 0x4d30]
push 0x1e0
lea ecx, [esi + 0x29a0]
push ecx
lea edx, [esi + 0x1be0]
push edx
call eax
add esp, 0xc
mov edi, dword [esi + 0x2134]
neg edi
sbb edi, edi
and edi, 0xf
cmp edi, 0x10
jge 0x59ca17
lea ebx, [esi + edi*4 + 0x1f68]
jmp 0x59c3e0
movzx eax, word [edi*2 + 0x5f21a8]
mov edx, dword [ebx]
add eax, dword [esi + 0x3020]
mov ecx, dword [edi*4 + 0x5f1f80]
movsx ecx, byte [ecx + esi + 0x36c0]
and dl, 6
cmp dl, 2
jne 0x59c414
movzx edx, byte [eax - 0x1d]
imul edx, edx, 0x1010101
mov dword [eax - 0x1c], edx
cmp dword [esi + 0x3cc4], 0
je 0x59c42b
push ecx
push edi
push eax
push esi
call fcn.0059be90
add esp, 0x10
jmp 0x59c438
push eax
mov eax, dword [esi + ecx*4 + 0x4a8c]
call eax
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
push edi
push esi
call fcn.0059b050
add edi, 1
add esp, 0xc
add ebx, 4
cmp edi, 0x10
jl 0x59c3e0
jmp 0x59ca17
cmp dword [esi + 0x2138], ebx
mov dword [esp + 0x28], ebx
jne 0x59c46c
push esi
call fcn.00577560
add esp, 4
cmp dword [esi + 0x3cc4], ebx
je 0x59c5cb
cmp dword [esi + 0x2120], ebx
je 0x59c540
lea edx, [esi + 0x19e0]
xor edi, edi
mov ebx, 0x5f1f88
mov dword [esp + 0x10], edx
mov eax, edi
sar eax, 1
add eax, eax
add eax, eax
add eax, eax
mov edx, eax
mov ecx, edi
and ecx, 1
add ecx, ecx
add ecx, ecx
shl edx, 5
add edx, dword [esi + 0x3020]
add ecx, ecx
shl eax, 4
add eax, ecx
add eax, dword [esi + 0x3008]
add edx, ecx
mov ecx, dword [esi + 0x4d8c]
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call ecx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov edx, dword [ecx + eax*8]
or edx, dword [ecx + eax*8 + 4]
jne 0x59c539
add eax, 1
cmp eax, 0x10
jl 0x59c4e0
xor edx, edx
mov ecx, dword [ebx - 8]
add dword [esp + 0x10], 0x80
mov eax, edx
imul eax, eax, 0x101
mov word [ecx + esi + 0x36f0], ax
mov ecx, dword [ebx]
mov word [esi + ecx + 0x36f0], ax
mov ecx, edi
shl edx, cl
add ebx, 0x10
add edi, 1
or dword [esi + 0x2124], edx
cmp ebx, 0x5f1fc8
jl 0x59c495
jmp 0x59ca17
mov edx, 1
jmp 0x59c4f3
xor ebx, ebx
lea edi, [esi + 0x1bf0]
jmp 0x59c550
movzx edx, word [ebx*2 + 0x5f21a8]
movzx ecx, byte [ebx + 0x5f2198]
add edx, dword [esi + 0x3020]
add ecx, dword [esi + 0x3008]
push edx
mov edx, dword [esi + 0x4d90]
lea eax, [edi - 0x10]
push ecx
push eax
call edx
mov eax, dword [edi - 8]
or eax, dword [edi + 8]
mov ecx, dword [edi - 4]
or ecx, dword [edi + 0xc]
or eax, dword [edi]
or ecx, dword [edi + 4]
or eax, dword [edi - 0x10]
or ecx, dword [edi - 0xc]
add esp, 0xc
or eax, ecx
je 0x59c59e
mov eax, 1
jmp 0x59c5a0
xor eax, eax
mov ecx, dword [ebx*4 + 0x5f1f80]
mov byte [ecx + esi + 0x36f0], al
mov ecx, ebx
sar ecx, 2
shl eax, cl
add ebx, 1
add edi, 0x20
or dword [esi + 0x2124], eax
cmp ebx, 0x10
jl 0x59c550
jmp 0x59ca17
cmp dword [esi + 0x2120], ebx
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x3008]
push eax
push ecx
je 0x59c7b4
mov eax, dword [esi + 0x4d74]
xor edx, edx
cmp dword [esi + 0x1f10], ebx
sete dl
and dword [esp + 0x24], edx
lea edx, [esp + 0x78]
push edx
call eax
mov ecx, dword [esi + 0x1f14]
add ecx, ecx
add ecx, ecx
add dword [esi + 0xdb4], ecx
lea edx, [esi + 0x19e0]
add esp, 0xc
xor ebx, ebx
lea edi, [esp + 0x70]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x1f14], 0
je 0x59c649
mov edx, dword [esi + 0x4db4]
push 0x40
lea eax, [esi + 0xd30]
push eax
lea ecx, [esi + 0xbb0]
push ecx
push edi
call edx
add esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
push 0
mov eax, esi
call fcn.0059b000
add esp, 8
test eax, eax
je 0x59c6af
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x4d84]
push edi
push eax
call ecx
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x59c6a0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4dc0]
push edx
call eax
add dword [esp + 0x2c], eax
add esp, 4
cmp eax, 4
jl 0x59c6af
mov edx, 1
mov ecx, ebx
shl edx, cl
or dword [esi + 0x2124], edx
jmp 0x59c6af
mov eax, 1
mov ecx, ebx
shl eax, cl
or dword [esi + 0x2124], eax
add dword [esp + 0x10], 0x80
add ebx, 1
add edi, 0x80
cmp ebx, 4
jl 0x59c624
cmp dword [esp + 0x28], 6
jge 0x59c6fb
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x59c6fb
mov dword [esi + 0x2124], eax
mov dword [esi + 0x36fc], eax
mov dword [esi + 0x3704], eax
mov dword [esi + 0x370c], eax
mov dword [esi + 0x3714], eax
jmp 0x59ca17
lea ecx, [esp + 0x70]
xor eax, eax
xor ebx, ebx
mov edi, 0x5f1f88
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov edx, 1
mov ecx, ebx
shl edx, cl
test dword [esi + 0x2124], edx
je 0x59c780
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xa58]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x4da8]
push ecx
push edx
call eax
mov ecx, dword [esp + 0x1c]
mov edx, ebx
sar edx, 1
shl edx, 5
mov eax, ebx
and eax, 1
push ecx
mov ecx, dword [esi + 0x3020]
add edx, eax
mov eax, dword [esi + 0x4d70]
lea edx, [ecx + edx*8]
push edx
call eax
mov ecx, dword [edi - 8]
mov eax, 0x101
mov word [ecx + esi + 0x36f0], ax
mov edx, dword [edi]
add esp, 0x14
mov word [esi + edx + 0x36f0], ax
xor eax, eax
jmp 0x59c795
mov ecx, dword [edi - 8]
mov word [ecx + esi + 0x36f0], ax
mov edx, dword [edi]
mov word [esi + edx + 0x36f0], ax
add dword [esp + 0x10], 0x80
add edi, 0x10
add ebx, 1
cmp edi, 0x5f1fc8
jl 0x59c710
jmp 0x59ca17
mov eax, dword [esi + 0x4d60]
lea edx, [esp + 0x78]
push edx
call eax
mov ecx, dword [esi + 0x1f14]
shl ecx, 4
lea edx, [esp + 0x7c]
add esp, 0xc
add dword [esi + 0xdb0], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0x5f1f80
lea eax, [esi + 0x1be0]
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea ebx, [ebx]
cmp dword [esi + 0x1f14], 0
je 0x59c835
mov ecx, dword [esi + 0x4db4]
push 0x10
lea edx, [esi + 0xcb0]
push edx
lea eax, [esi + 0xab0]
push eax
push edi
call ecx
add esp, 0x10
cmp dword [esi + 0x1f10], 0
je 0x59c85d
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea eax, [ebx + edx*4]
push eax
push 0
push 2
push ecx
push 1
push edi
push esi
call fcn.0058e830
add esp, 0x1c
jmp 0x59c882
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0xa90]
mov ecx, dword [esi + 0xa78]
shl eax, 5
add edx, eax
push edx
mov edx, dword [esi + 0x4d9c]
add ecx, eax
push ecx
push edi
call edx
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov byte [esi + edx + 0x36f0], al
je 0x59c8e3
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x4d88]
push edi
push eax
call ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0xa48]
mov ecx, dword [esi + 0x4dac]
push edx
push eax
push edi
call ecx
add esp, 0x14
cmp dword [esp + 0x1c], 0
je 0x59c8db
cmp dword [esp + 0x30], 6
jge 0x59c8db
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4dbc]
push edx
call eax
add esp, 4
add dword [esp + 0x30], eax
mov dword [esp + 0x34], 1
add dword [esp + 0x10], 0x20
add dword [esp + 0x14], 4
add ebx, 1
add edi, 0x20
cmp ebx, 4
jl 0x59c810
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], eax
xor edx, edx
cmp dword [esp + 0x1c], edx
je 0x59c93f
cmp eax, 4
jge 0x59c92c
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov word [esi + ecx + 0x36f0], dx
mov eax, dword [eax + 8]
mov word [eax + esi + 0x36f0], dx
jmp 0x59c982
mov ecx, dword [esp + 0x2c]
mov eax, 1
shl eax, cl
or dword [esi + 0x2124], eax
jmp 0x59c982
cmp dword [esp + 0x34], edx
je 0x59c982
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, ebx
sar edx, 1
shl edx, 5
mov eax, ebx
and eax, 1
push ecx
mov ecx, dword [esi + 0x3020]
add edx, eax
mov eax, dword [esi + 0x4d58]
lea edx, [ecx + edx*8]
push edx
call eax
mov edx, 1
mov ecx, ebx
shl edx, cl
add esp, 8
or dword [esi + 0x2124], edx
xor edx, edx
mov ecx, dword [esp + 0x14]
add dword [esp + 0x2c], 1
cmp ecx, 0x5f1fc0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jl 0x59c7f0
cmp dword [esp + 0x1c], edx
je 0x59ca17
cmp dword [esp + 0x28], 6
jge 0x59c9d0
mov dword [esi + 0x2124], edx
mov dword [esi + 0x36fc], edx
mov dword [esi + 0x3704], edx
mov dword [esi + 0x370c], edx
mov dword [esi + 0x3714], edx
jmp 0x59ca17
xor edi, edi
lea ebx, [esp + 0x70]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esi + 0x2124], eax
je 0x59ca09
mov eax, dword [esi + 0x3020]
sar ecx, 1
shl ecx, 5
mov edx, edi
and edx, 1
add ecx, edx
mov edx, dword [esi + 0x4d58]
lea ecx, [eax + ecx*8]
push ebx
push ecx
call edx
add esp, 8
add edi, 1
add ebx, 0x80
cmp edi, 4
jl 0x59c9d6
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x59ca30
cmp eax, 1
je 0x59ca30
cmp eax, 2
je 0x59ca30
cmp eax, 3
jne 0x59ca6b
cmp dword [esi + 0x3cc4], 0
mov edi, dword [esi + 0x2130]
je 0x59ca48
push edi
push esi
call fcn.0059bdd0
jmp 0x59ca68
mov eax, dword [esi + 0x3024]
mov ecx, dword [esi + edi*4 + 0x4a40]
push eax
call ecx
mov edx, dword [esi + 0x3028]
mov eax, dword [esi + edi*4 + 0x4a40]
push edx
call eax
add esp, 8
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x59ca8b
cmp eax, 1
je 0x59ca8b
cmp eax, 2
je 0x59ca8b
cmp eax, 3
je 0x59ca8b
mov eax, 1
jmp 0x59ca8d
xor eax, eax
mov ecx, dword [esi + 0x3cb4]
push ecx
push eax
push esi
call fcn.0059b7c0
add esp, 0xc
cmp dword [esi + 0x78], 0
je 0x59cac3
movzx eax, byte [esi + 0x371e]
movzx edx, byte [esi + 0x371d]
movzx ecx, byte [esi + 0x371c]
add eax, eax
or eax, edx
add eax, eax
or eax, ecx
jmp 0x59cac7
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x1ef8]
mov ecx, dword [esi + 0x1fc8]
shl eax, 4
or ax, word [esi + 0x2128]
shl ax, 4
or ax, word [esi + 0x2124]
cmp dword [esp + 0x38], 0
mov word [ecx + edx*2], ax
jne 0x59cb55
cmp dword [esi + 0x2114], 4
jne 0x59cb34
cmp dword [esi + 0x2118], 0x10
jne 0x59cb34
mov edx, dword [esi + 0x2124]
or edx, dword [esi + 0x2128]
jne 0x59cb34
mov eax, dword [esi + 0x37b0]
cmp eax, dword [esi + 0x3c90]
jne 0x59cb34
cmp byte [esi + 0x372c], 0
jne 0x59cb34
mov dword [esi + 0x2114], 6
cmp dword [esi + 0x2114], 7
jne 0x59cb55
mov ecx, dword [esi + 0x2124]
or ecx, dword [esi + 0x2128]
jne 0x59cb55
mov dword [esi + 0x2114], 0x12
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2719
mov esp, ebp
pop ebp
ret