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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
lea edi, [ebp - 0x120]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0
cmp dword [ebp + 8], 0
jne 0x5b560f
mov eax, 0xffffff9a
jmp 0x5b5da6
cmp dword [ebp + 0x28], 0
je 0x5b5625
cmp dword [ebp + 0x28], 8
je 0x5b5625
mov eax, 0xffffff9a
jmp 0x5b5da6
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x2c], 1
jne 0x5b5651
mov eax, dword [ebp + 8]
push eax
call fcn.005b6b90
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x5b5651
mov eax, dword [ebp - 0x3c]
jmp 0x5b5da6
cmp dword [ebp + 0xc], 0
jne 0x5b565e
mov dword [ebp + 0xc], 0x683c40
cmp dword [ebp + 0x24], 0
jne 0x5b566d
mov dword [ebp - 0x24], 0
jmp 0x5b567c
mov eax, dword [ebp + 0x24]
push eax
call fcn.005e51c0
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.005e51c0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
jne 0x5b56a0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x4088], 0
jmp 0x5b56d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0
je 0x5b56ba
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x4088], edx
jmp 0x5b56d6
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.005b6380
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x4088], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x7c], 0
cmp dword [ebp + 0x2c], 8
je 0x5b56ec
cmp dword [ebp + 0x2c], 9
jne 0x5b56fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
or ecx, 2
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x7c], ecx
cmp dword [ebp + 0x2c], 2
jne 0x5b5710
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
or ecx, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x7c], ecx
cmp dword [ebp + 0x2c], 1
jne 0x5b5725
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
or ecx, 6
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x7c], ecx
cmp dword [ebp + 0x40], 0
je 0x5b573a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
or ecx, 1
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x7c], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x408c], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x28]
mov dword [eax + 0x80], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x4090], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x30]
mov dword [eax + 0x84], ecx
mov esi, esp
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
call edx
add esp, 8
cmp esi, esp
call fcn.005ee462
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x70], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 0x2e]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x78], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.005e8616
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x74], eax
push 4
push 0x2014b50
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.005b62f0
add esp, 0xc
push 2
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 4
push ecx
call fcn.005b62f0
add esp, 0xc
push 2
push 0x14
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 6
push ecx
call fcn.005b62f0
add esp, 0xc
push 2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
add eax, 8
push eax
call fcn.005b62f0
add esp, 0xc
push 2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
add eax, 0xa
push eax
call fcn.005b62f0
add esp, 0xc
push 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x4088]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
add eax, 0xc
push eax
call fcn.005b62f0
add esp, 0xc
push 4
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 0x10
push ecx
call fcn.005b62f0
add esp, 0xc
push 4
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 0x14
push ecx
call fcn.005b62f0
add esp, 0xc
push 4
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 0x18
push ecx
call fcn.005b62f0
add esp, 0xc
push 2
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x74]
add edx, 0x1c
push edx
call fcn.005b62f0
add esp, 0xc
push 2
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x74]
add edx, 0x1e
push edx
call fcn.005b62f0
add esp, 0xc
push 2
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x74]
add edx, 0x20
push edx
call fcn.005b62f0
add esp, 0xc
push 2
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 0x22
push ecx
call fcn.005b62f0
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x5b5927
push 2
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 0x24
push ecx
call fcn.005b62f0
add esp, 0xc
jmp 0x5b5942
push 2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
add eax, 0x24
push eax
call fcn.005b62f0
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x5b5960
push 4
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 0x26
push ecx
call fcn.005b62f0
add esp, 0xc
jmp 0x5b597b
push 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
add eax, 0x26
push eax
call fcn.005b62f0
add esp, 0xc
push 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
sub edx, dword [ecx + 0x40ac]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
add ecx, 0x2a
push ecx
call fcn.005b62f0
add esp, 0xc
mov dword [ebp - 0x30], 0
jmp 0x5b59b1
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x18]
jae 0x5b59d0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov dl, byte [edx]
mov byte [ecx + eax + 0x2e], dl
jmp 0x5b59a8
mov dword [ebp - 0x30], 0
jmp 0x5b59e2
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x20]
jae 0x5b5a07
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx + 0x2e]
mov ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov cl, byte [ecx]
mov byte [eax + edx], cl
jmp 0x5b59d9
mov dword [ebp - 0x30], 0
jmp 0x5b5a19
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x24]
jae 0x5b5a41
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx + 0x2e]
add eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov cl, byte [ecx]
mov byte [eax + edx], cl
jmp 0x5b5a10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x74], 0
jne 0x5b5a54
mov eax, 0xffffff98
jmp 0x5b5da6
push 4
push 0x4034b50
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5a91
push 2
push 0x14
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5ab6
push 2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5ade
push 2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5b06
push 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x4088]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5b26
push 4
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5b46
push 4
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5b66
push 4
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5b88
push 2
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5baa
push 2
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5bec
cmp dword [ebp - 0x18], 0
jbe 0x5b5bec
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
cmp esi, esp
call fcn.005ee462
cmp eax, dword [ebp - 0x18]
je 0x5b5bec
mov dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp - 0x3c], 0
jne 0x5b5c2e
cmp dword [ebp + 0x18], 0
jbe 0x5b5c2e
mov esi, esp
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
cmp esi, esp
call fcn.005ee462
cmp eax, dword [ebp + 0x18]
je 0x5b5c2e
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40], 0x4000
mov eax, dword [ebp - 0xc]
add eax, 0x88
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x38], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x44], 0
cmp dword [ebp - 0x3c], 0
jne 0x5b5ce9
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x80], 8
jne 0x5b5ce9
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x84], 0
jne 0x5b5ce9
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x50], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x54], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x58], 0
cmp dword [ebp + 0x34], 0
jle 0x5b5cae
mov eax, dword [ebp + 0x34]
neg eax
mov dword [ebp + 0x34], eax
push 0x38
push 0x683c38
mov eax, dword [ebp + 0x3c]
push eax
mov ecx, dword [ebp + 0x38]
push ecx
mov edx, dword [ebp + 0x34]
push edx
push 8
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
push ecx
call fcn.005ba390
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5b5ce9
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40a4], 0
cmp dword [ebp - 0x3c], 0
jne 0x5b5d93
cmp dword [ebp + 0x40], 0
je 0x5b5d93
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x4090], 1
call fcn.005b98b0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x40a0], eax
mov eax, dword [ebp + 0x44]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40a0]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x4094
push eax
push 0xc
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0x40]
push edx
call fcn.005b5e00
add esp, 0x18
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x40a4], ecx
mov esi, esp
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
call ecx
add esp, 0x10
cmp esi, esp
call fcn.005ee462
cmp eax, dword [ebp - 0x5c]
je 0x5b5d93
mov dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp - 0x3c], 0
jne 0x5b5da3
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], 1
mov eax, dword [ebp - 0x3c]
push edx
mov ecx, ebp
push eax
lea edx, [0x5b5dd8]
call fcn.005ee485
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e5163
add esp, 0x120
cmp ebp, esp
call fcn.005ee462
mov esp, ebp
pop ebp
ret