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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x274
mov eax, dword [0x628560]
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 0x59c299
cmp dword [esi + 0x19c], ebx
mov dword [esp + 0x1c], ebx
je 0x59c29d
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 0x59c310
mov eax, dword [esi + 0xdc4]
mov edx, dword [esi + 0x1ee4]
add edx, eax
cmp dword [esi + 0x1ef8], edx
jne 0x59c310
mov edx, dword [esi + 0x1fc0]
mov al, byte [eax + edx]
cmp al, 6
je 0x59c2dc
cmp al, 0x12
jne 0x59c310
mov eax, dword [esi + 0x2114]
cmp eax, 6
mov dword [esp + 0x38], ecx
je 0x59c2f5
cmp eax, 0x12
jne 0x59c310
cmp eax, 6
jne 0x59c301
mov dword [esi + 0x2114], 4
jmp 0x59c310
cmp eax, 0x12
jne 0x59c310
mov dword [esi + 0x2114], 7
mov eax, dword [esi + 0x2114]
cmp eax, 6
jne 0x59c335
call fcn.0059bf10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret
cmp eax, 0x12
jne 0x59c38e
cmp dword [esi + 0x2138], ebx
jne 0x59c34b
push esi
call fcn.005777a0
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.004f9940
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.004f2a78
mov esp, ebp
pop ebp
ret
mov edi, 2
cmp eax, edi
jne 0x59c3ec
cmp dword [esi + 0x3cc4], ebx
mov eax, dword [esi + 0x212c]
mov dword [esi + 0x2120], ebx
je 0x59c3c7
push eax
push esi
call fcn.0059c1d0
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call fcn.0059b630
add esp, 4
jmp 0x59cc57
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.0059b630
add esp, 4
jmp 0x59cc57
cmp eax, ecx
jne 0x59c560
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ecx
je 0x59c487
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 0x59c487
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 0x59cc57
mov ebx, edi
shl ebx, 4
lea eax, [esi + edi*4 + 0x1f58]
add ebx, 0x5f1fa8
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 + 0x5f2014]
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 0x59c520
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edi
push edx
push esi
call fcn.0059c150
add esp, 0x14
jmp 0x59c535
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.0059b420
add dword [esp + 0x20], 4
add ebx, 0x10
add esp, 0xc
add edi, 1
cmp ebx, 0x5f1fe8
jl 0x59c4b3
jmp 0x59cc57
cmp eax, ebx
jne 0x59c697
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ebx
je 0x59c5fb
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 0x59c5fb
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 0x59cc57
lea ebx, [esi + edi*4 + 0x1f68]
jmp 0x59c620
movzx eax, word [edi*2 + 0x5f21d0]
mov edx, dword [ebx]
add eax, dword [esi + 0x3020]
mov ecx, dword [edi*4 + 0x5f1fa8]
movsx ecx, byte [ecx + esi + 0x36c0]
and dl, 6
cmp dl, 2
jne 0x59c654
movzx edx, byte [eax - 0x1d]
imul edx, edx, 0x1010101
mov dword [eax - 0x1c], edx
cmp dword [esi + 0x3cc4], 0
je 0x59c66b
push ecx
push edi
push eax
push esi
call fcn.0059c0d0
add esp, 0x10
jmp 0x59c678
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.0059b290
add edi, 1
add esp, 0xc
add ebx, 4
cmp edi, 0x10
jl 0x59c620
jmp 0x59cc57
cmp dword [esi + 0x2138], ebx
mov dword [esp + 0x28], ebx
jne 0x59c6ac
push esi
call fcn.005777a0
add esp, 4
cmp dword [esi + 0x3cc4], ebx
je 0x59c80b
cmp dword [esi + 0x2120], ebx
je 0x59c780
lea edx, [esi + 0x19e0]
xor edi, edi
mov ebx, 0x5f1fb0
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 0x59c779
add eax, 1
cmp eax, 0x10
jl 0x59c720
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, 0x5f1ff0
jl 0x59c6d5
jmp 0x59cc57
mov edx, 1
jmp 0x59c733
xor ebx, ebx
lea edi, [esi + 0x1bf0]
jmp 0x59c790
movzx edx, word [ebx*2 + 0x5f21d0]
movzx ecx, byte [ebx + 0x5f21c0]
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 0x59c7de
mov eax, 1
jmp 0x59c7e0
xor eax, eax
mov ecx, dword [ebx*4 + 0x5f1fa8]
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 0x59c790
jmp 0x59cc57
cmp dword [esi + 0x2120], ebx
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x3008]
push eax
push ecx
je 0x59c9f4
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 0x59c889
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.0059b240
add esp, 8
test eax, eax
je 0x59c8ef
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 0x59c8e0
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 0x59c8ef
mov edx, 1
mov ecx, ebx
shl edx, cl
or dword [esi + 0x2124], edx
jmp 0x59c8ef
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 0x59c864
cmp dword [esp + 0x28], 6
jge 0x59c93b
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x59c93b
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 0x59cc57
lea ecx, [esp + 0x70]
xor eax, eax
xor ebx, ebx
mov edi, 0x5f1fb0
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov edx, 1
mov ecx, ebx
shl edx, cl
test dword [esi + 0x2124], edx
je 0x59c9c0
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 0x59c9d5
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, 0x5f1ff0
jl 0x59c950
jmp 0x59cc57
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], 0x5f1fa8
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 0x59ca75
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 0x59ca9d
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.0058ea70
add esp, 0x1c
jmp 0x59cac2
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 0x59cb23
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 0x59cb1b
cmp dword [esp + 0x30], 6
jge 0x59cb1b
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 0x59ca50
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], eax
xor edx, edx
cmp dword [esp + 0x1c], edx
je 0x59cb7f
cmp eax, 4
jge 0x59cb6c
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 0x59cbc2
mov ecx, dword [esp + 0x2c]
mov eax, 1
shl eax, cl
or dword [esi + 0x2124], eax
jmp 0x59cbc2
cmp dword [esp + 0x34], edx
je 0x59cbc2
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, 0x5f1fe8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jl 0x59ca30
cmp dword [esp + 0x1c], edx
je 0x59cc57
cmp dword [esp + 0x28], 6
jge 0x59cc10
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 0x59cc57
xor edi, edi
lea ebx, [esp + 0x70]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esi + 0x2124], eax
je 0x59cc49
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 0x59cc16
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x59cc70
cmp eax, 1
je 0x59cc70
cmp eax, 2
je 0x59cc70
cmp eax, 3
jne 0x59ccab
cmp dword [esi + 0x3cc4], 0
mov edi, dword [esi + 0x2130]
je 0x59cc88
push edi
push esi
call fcn.0059c010
jmp 0x59cca8
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 0x59cccb
cmp eax, 1
je 0x59cccb
cmp eax, 2
je 0x59cccb
cmp eax, 3
je 0x59cccb
mov eax, 1
jmp 0x59cccd
xor eax, eax
mov ecx, dword [esi + 0x3cb4]
push ecx
push eax
push esi
call fcn.0059ba00
add esp, 0xc
cmp dword [esi + 0x78], 0
je 0x59cd03
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 0x59cd07
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 0x59cd95
cmp dword [esi + 0x2114], 4
jne 0x59cd74
cmp dword [esi + 0x2118], 0x10
jne 0x59cd74
mov edx, dword [esi + 0x2124]
or edx, dword [esi + 0x2128]
jne 0x59cd74
mov eax, dword [esi + 0x37b0]
cmp eax, dword [esi + 0x3c90]
jne 0x59cd74
cmp byte [esi + 0x372c], 0
jne 0x59cd74
mov dword [esi + 0x2114], 6
cmp dword [esi + 0x2114], 7
jne 0x59cd95
mov ecx, dword [esi + 0x2124]
or ecx, dword [esi + 0x2128]
jne 0x59cd95
mov dword [esi + 0x2114], 0x12
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret