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

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
xor ebp, ebp
cmp eax, ebp
je 0x5b3ecb
cmp eax, 2
jne 0x5b3ecb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xdc]
imul ecx, ecx, 0x113b8
add ecx, dword [0x12c5540]
call fcn.00538dc0
mov edx, dword [esp + 0x10]
cmp edx, dword [esi + 0x38]
jne 0x5b3e70
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x3c]
je 0x5b3ecb
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x6c]
push ecx
mov ecx, dword [esi + 0xfc]
push edx
push eax
push ecx
mov ecx, dword [0x8e4d00]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.00570970
mov edx, dword [esi + 0x74]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebp
push edx
push eax
push ecx
push 2
mov ecx, esi
call fcn.005b2960
push 1
mov ecx, esi
call fcn.005b28f0
pop esi
pop ebp
add esp, 0x10
ret
mov ecx, dword [esi + 0xec]
cmp ecx, ebp
je 0x5b3eee
mov eax, dword [esi + 0x20]
add dword [esi + 0x1c], eax
jns 0x5b3ee0
mov dword [esi + 0x1c], ebp
mov edx, dword [esi + 0x1c]
sub eax, ecx
sar edx, 0xa
mov dword [esi + 0x20], eax
mov dword [esi + 0x74], edx
push ebx
mov ebx, dword [esi + 0xfc]
mov ecx, 1
cmp dword [esi + 0x14], ecx
push edi
jne 0x5b4029
mov eax, dword [esi + 0x28]
cdq
idiv dword [0x684680]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], eax
jle 0x5b3fc1
mov edi, edi
mov eax, dword [esi + 0x70]
mov ebp, dword [esi + 0x6c]
push ecx
mov ecx, dword [0x684680]
push ecx
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.005b38f0
mov edi, eax
test edi, edi
je 0x5b3f95
mov eax, dword [esi + 0xfc]
cmp ebx, eax
je 0x5b3f72
mov edx, dword [esi + 0xf4]
mov ecx, dword [0x8e4d00]
push edx
push eax
mov eax, dword [esi + 0xf8]
imul eax, eax, 0x108
push ebx
push 0xfa2
lea ecx, [eax + ecx + 0x54]
call fcn.005578b0
cmp edi, 1
jne 0x5b3f8c
mov ecx, esi
call fcn.005b3290
cmp dword [esi + 0xf0], edi
jne 0x5b40d3
jmp 0x5b3f95
cmp edi, 2
je 0x5b40ca
cmp dword [esi + 0x6c], ebp
jne 0x5b3fa3
mov edx, dword [esp + 0x1c]
cmp dword [esi + 0x70], edx
je 0x5b3faa
mov ecx, 1
jmp 0x5b3fac
xor ecx, ecx
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x5b3f20
mov eax, dword [esi + 0x28]
cdq
idiv dword [0x684680]
mov edi, dword [esi + 0xfc]
push ecx
mov ecx, esi
push edx
call fcn.005b38f0
mov ebx, eax
mov eax, dword [esi + 0xfc]
cmp edi, eax
je 0x5b400e
mov edx, dword [esi + 0xf8]
mov ecx, dword [esi + 0xf4]
imul edx, edx, 0x108
push ecx
push eax
mov eax, dword [0x8e4d00]
push edi
push 0xfa2
lea ecx, [edx + eax + 0x54]
call fcn.005578b0
cmp ebx, 1
jne 0x5b4021
pop edi
pop ebx
mov ecx, esi
pop esi
pop ebp
add esp, 0x10
jmp fcn.005b3290
cmp ebx, 2
jmp 0x5b40c8
push ecx
mov ecx, dword [esi + 0x28]
push ecx
mov ecx, esi
call fcn.005b38f0
mov edi, eax
cmp edi, 1
jne 0x5b4093
mov eax, dword [esi + 0xfc]
cmp ebx, eax
je 0x5b406f
mov edx, dword [esi + 0xf4]
mov ecx, dword [0x8e4d00]
push edx
push eax
mov eax, dword [esi + 0xf8]
imul eax, eax, 0x108
push ebx
push 0xfa2
lea ecx, [eax + ecx + 0x54]
call fcn.005578b0
mov ecx, esi
call fcn.005b3290
cmp dword [esi + 0xf0], 1
jne 0x5b40d3
mov edx, dword [esi + 0x28]
mov ebx, dword [esi + 0xfc]
push ebp
push edx
mov ecx, esi
call fcn.005b38f0
mov edi, eax
mov eax, dword [esi + 0xfc]
cmp ebx, eax
je 0x5b40c5
mov edx, dword [esi + 0xf8]
mov ecx, dword [esi + 0xf4]
imul edx, edx, 0x108
push ecx
push eax
mov eax, dword [0x8e4d00]
push ebx
push 0xfa2
lea ecx, [edx + eax + 0x54]
call fcn.005578b0
cmp edi, 2
jne 0x5b40d3
push 1
mov ecx, esi
call fcn.005b28f0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret