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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x164]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
cmp edi, dword [ebx + 0x90]
jne 0x5a0522
lea eax, [ebx + 0x120]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x124]
jmp 0x5a052e
mov eax, dword [ebx + 0x12c]
mov dword [ebp - 0xc], eax
add eax, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push edi
mov dword [ebp - 8], eax
call dword [edi + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
add eax, 5
mov dword [edx], ecx
cmp eax, 0x12
ja case.default.0x5a0560
jmp dword [eax*4 + 0x5a0ddb]
mov eax, dword [edi + 0x44]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
add eax, ecx
push eax
push edi
call dword [edi + 0x30]
movzx eax, ax
mov dword [ebp - 0x28], eax
test ax, ax
je 0x5a05b5
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x5a059c
lea ecx, [ebp - 0x28]
push 1
push ecx
push dword [ebx + 4]
call eax
add esp, 0xc
jmp 0x5a0622
cmp dword [ebx + 0x50], 0
je 0x5a061f
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push dword [ebp + 0x14]
mov esi, ebx
push edi
call fcn.0059d74c
jmp 0x5a0622
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x44]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
sub edi, eax
add eax, ecx
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x50
call fcn.0059e94b
xor ebx, ebx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x5a0c21
mov edi, dword [ebp - 0x24]
push ebx
push eax
mov esi, edi
call fcn.0059d8fa
mov esi, eax
mov eax, dword [edi + 0x60]
mov dword [edi + 0x5c], eax
cmp byte [edi + 0x81], bl
je 0x5a0666
cmp byte [edi + 0x82], bl
jne 0x5a0666
cmp esi, ebx
jne 0x5a0677
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, ebx
je 0x5a064c
push ebx
push dword [ebp - 0x20]
push dword [eax + 4]
call ecx
add esp, 0xc
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0x14], ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1e0]
dec eax
dec eax
je 0x5a0dd0
dec eax
jne 0x5a0539
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x5a0c47
cmp dword [eax + 0x50], ebx
je 0x5a061c
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.0059d74c
mov ebx, esi
jmp 0x5a061f
cmp esi, ebx
je 0x5a0cf4
cmp byte [esi + 0x22], bl
je 0x5a0cfb
cmp byte [esi + 0x20], bl
jne 0x5a0d02
cmp dword [esi + 0x1c], ebx
jne 0x5a0d09
cmp dword [esi + 4], ebx
je 0x5a06bc
mov eax, dword [ebp + 8]
cmp byte [eax + 0x134], bl
jne 0x5a06a8
mov ecx, dword [eax + 0x78]
cmp ecx, ebx
je 0x5a064c
push ebx
push dword [esi]
jmp 0x5a0614
push ebx
mov ebx, esi
mov esi, eax
call fcn.0059d5ef
test eax, eax
jne 0x5a0dd3
jmp 0x5a0662
mov edi, dword [ebp + 8]
cmp dword [edi + 0x70], ebx
je 0x5a0706
mov byte [esi + 0x20], 1
call fcn.0059e481
mov byte [esi + 0x20], bl
cmp eax, ebx
je 0x5a0c21
push dword [esi + 0x18]
push dword [esi + 0x10]
push dword [esi + 0x14]
push eax
push dword [edi + 0x74]
call dword [edi + 0x70]
add esp, 0x14
test eax, eax
je 0x5a0d10
mov eax, dword [edi + 0x1b0]
mov dword [edi + 0x1ac], eax
mov ebx, edi
jmp 0x5a061f
cmp dword [edi + 0x50], ebx
je 0x5a061c
mov esi, edi
jmp 0x5a0654
lea eax, [ebx + 0x170]
mov esi, dword [eax]
test esi, esi
je 0x5a0728
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x5a074f
push 0x30
call dword [ebx + 0xc]
mov esi, eax
pop ecx
test esi, esi
je 0x5a0c21
push 0x20
call dword [ebx + 0xc]
pop ecx
mov dword [esi + 0x24], eax
test eax, eax
je 0x5a0d17
add eax, 0x20
mov dword [esi + 0x28], eax
xor ecx, ecx
lea eax, [esi + 0x2c]
mov dword [eax], ecx
mov dword [ebp - 0x30], eax
lea eax, [ebx + 0x16c]
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], esi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp + 0x14]
add eax, ecx
push eax
push edi
mov dword [esi + 4], eax
call dword [edi + 0x20]
mov dword [esi + 8], eax
inc dword [ebx + 0x138]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x28]
dec ecx
dec ecx
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x1c], eax
push eax
jmp 0x5a07df
mov eax, dword [esi + 0x28]
sub eax, ecx
add eax, eax
push eax
push ecx
mov dword [ebp - 0x2c], eax
call dword [ebx + 0x10]
pop ecx
pop ecx
test eax, eax
je 0x5a0c21
mov ecx, dword [ebp - 0x2c]
add ecx, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x28]
dec eax
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [edi + 0x40]
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x24]
sar eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x5a07a5
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x30]
mov dword [esi + 0x18], eax
lea eax, [esi + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
push eax
xor ecx, ecx
mov word [edx], cx
push dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
push edi
push ebx
call fcn.0059fce1
test eax, eax
jne 0x5a0dd3
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x5a0845
push dword [ebx + 0x188]
mov ecx, dword [ebp - 0x2c]
push dword [ecx]
push dword [ebx + 4]
call eax
add esp, 0xc
jmp 0x5a0859
cmp dword [ebx + 0x50], 0
je 0x5a0859
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push edi
mov esi, ebx
call fcn.0059d74c
lea eax, [ebx + 0x1a0]
call fcn.0059dbe7
jmp 0x5a0622
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x44]
add esi, dword [ebp + 0x14]
and dword [ebp - 0x1c], 0
push esi
add ebx, 0x1a0
push eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x20], ebx
call dword [eax + 0x20]
mov ebx, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [ebp - 0x20]
add edi, esi
push esi
call fcn.0059e94b
xor ebx, ebx
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x5a0c21
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.0059fce1
cmp eax, ebx
jne 0x5a0dd3
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x5a08f7
push dword [esi + 0x188]
push dword [ebp - 0x4c]
push dword [esi + 4]
call eax
add esp, 0xc
mov byte [ebp - 1], bl
cmp dword [esi + 0x38], ebx
je 0x5a0919
cmp dword [esi + 0x34], ebx
je 0x5a090b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push dword [ebp - 0x4c]
push dword [esi + 4]
call dword [esi + 0x38]
pop ecx
pop ecx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x5a0931
cmp dword [esi + 0x50], ebx
je 0x5a0931
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.0059d74c
mov eax, dword [ebp - 0x20]
call fcn.0059dbe7
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
je 0x5a0973
mov eax, dword [esi + 0x68]
mov ebx, edi
test eax, eax
je 0x5a0954
mov ecx, dword [edi]
push dword [ecx]
push dword [esi + 4]
call eax
pop ecx
pop ecx
mov ecx, dword [esi + 0x178]
lea eax, [edi + 4]
mov edi, dword [eax]
mov dword [eax], ecx
mov dword [esi + 0x178], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
mov dword [eax + 4], ecx
test edi, edi
jne 0x5a0940
cmp dword [esi + 0x138], 0
jne 0x5a0662
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
push esi
call fcn.0059fb4d
jmp 0x5a0dd3
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 0x138], eax
je 0x5a0c9d
lea eax, [ebx + 0x16c]
mov esi, dword [eax]
mov ecx, dword [esi]
mov dword [eax], ecx
lea eax, [ebx + 0x170]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [edi + 0x44]
lea eax, [ecx + eax*2]
push eax
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
call dword [edi + 0x20]
cmp eax, dword [esi + 8]
jne 0x5a0d21
mov edi, dword [ebp - 0x20]
mov ecx, eax
mov eax, esi
mov esi, dword [eax + 4]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x5a0d21
dec dword [ebx + 0x138]
cmp dword [ebx + 0x38], eax
je 0x5a0a64
mov esi, dword [ebp - 0x14]
mov edx, dword [esi + 0x10]
cmp byte [ebx + 0xec], al
je 0x5a0a54
test edx, edx
je 0x5a0a54
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*2]
jmp 0x5a0a1b
mov word [eax], cx
inc eax
inc eax
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x5a0a14
mov edx, dword [esi + 0x14]
cmp byte [ebx + 0xed], cl
je 0x5a0a4f
test edx, edx
je 0x5a0a4f
mov cx, word [ebx + 0x1d8]
mov word [eax], cx
inc eax
inc eax
jmp 0x5a0a47
mov word [eax], cx
inc eax
inc eax
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x5a0a40
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
push dword [ebx + 4]
call dword [ebx + 0x38]
pop ecx
pop ecx
jmp 0x5a0a7a
cmp dword [ebx + 0x50], 0
je 0x5a0a7a
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
mov esi, ebx
call fcn.0059d74c
mov eax, dword [ebp - 0x14]
jmp 0x5a0ab7
mov ecx, dword [ebx + 0x68]
mov esi, dword [eax + 0x2c]
test ecx, ecx
je 0x5a0a97
mov eax, dword [esi]
push dword [eax]
push dword [ebx + 4]
call ecx
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [eax + 0x2c]
mov ecx, dword [ecx + 4]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebx + 0x178]
mov dword [esi + 4], ecx
mov dword [ebx + 0x178], esi
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov dword [ecx + 4], edx
cmp dword [eax + 0x2c], 0
jne 0x5a0a7f
cmp dword [ebx + 0x138], 0
jne 0x5a061f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
push ebx
jmp 0x5a098a
push dword [ebp + 0x14]
push edi
call dword [edi + 0x2c]
test eax, eax
jl 0x5a0d30
cmp dword [ebx + 0x3c], 0
je 0x5a059c
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.005a9d29
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 4]
call dword [ebx + 0x3c]
jmp 0x5a0594
mov eax, dword [ebx + 0x3c]
test eax, eax
je case.default.0x5a0560
mov dword [ebp - 0x30], 0xa
lea ecx, [ebp - 0x30]
jmp 0x5a058c
cmp dword [ebx + 0x50], 0
je 0x5a0622
mov eax, ecx
jmp 0x5a05a8
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x5a0b42
push dword [ebx + 4]
call eax
pop ecx
jmp 0x5a0b55
cmp dword [ebx + 0x50], 0
je 0x5a0b55
push dword [ebp + 0x14]
mov eax, ecx
push edi
mov esi, ebx
call fcn.0059d74c
push dword [ebp + 0x20]
mov edi, dword [ebp + 0x10]
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
mov eax, ebx
call fcn.0059e0b7
test eax, eax
jne 0x5a0dd3
cmp dword [ebp - 8], eax
jne 0x5a0622
mov dword [ebx + 0x118], 0x59ed1b
jmp 0x5a0c47
mov eax, dword [ebx + 0x3c]
test eax, eax
je case.default.0x5a0560
cmp byte [edi + 0x49], 0
je 0x5a0bad
test byte [ebp + 0x14], 1
jne 0x5a0bad
sub ecx, dword [ebp + 0x14]
sar ecx, 1
push ecx
push dword [ebp + 0x14]
jmp 0x5a058f
mov eax, dword [ebx + 0x2c]
push dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp + 0x14]
push eax
push edi
call dword [edi + 0x40]
mov esi, dword [ebp - 0x18]
jmp 0x5a0be5
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebx + 0x2c]
push dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0x14]
push eax
push edi
call dword [edi + 0x40]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebx + 0x2c]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push dword [ebx + 4]
call dword [ebx + 0x3c]
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, dword [ebp - 8]
jne 0x5a0bc8
jmp 0x5a0622
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, edi
mov edx, ebx
call fcn.0059f647
test eax, eax
jne 0x5a0622
xor eax, eax
inc eax
jmp 0x5a0dd3
push dword [ebp + 0x14]
mov eax, ecx
mov ecx, edi
mov edx, ebx
call fcn.0059f6ef
jmp 0x5a0c19
cmp byte [ebp + 0x20], 0
je 0x5a0c4e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
xor eax, eax
jmp 0x5a0dd3
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x5a0c71
push 1
lea ecx, [ebp + 0x10]
push ecx
push dword [ebx + 4]
mov dword [ebp + 0x10], 0xa
call eax
add esp, 0xc
jmp 0x5a0c87
cmp dword [ebx + 0x50], 0
je 0x5a0c87
push dword [ebp + 0x14]
mov eax, esi
push edi
mov esi, ebx
call fcn.0059d74c
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5a0c95
push 3
jmp 0x5a0dd2
cmp dword [ebx + 0x138], eax
je 0x5a0ca4
push 0xd
jmp 0x5a0dd2
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
jmp 0x5a0c47
cmp byte [ebp + 0x20], 0
jne 0x5a0c3f
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x5a0c8e
cmp dword [ebx + 0x138], eax
je 0x5a0c3f
jmp 0x5a0c9d
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
push 4
jmp 0x5a0dd2
cmp byte [ebp + 0x20], 0
jne 0x5a0c3f
push 5
jmp 0x5a0dd2
cmp byte [ebp + 0x20], 0
jne 0x5a0c3f
push 6
jmp 0x5a0dd2
push 0xb
jmp 0x5a0dd2
push 0x18
jmp 0x5a0dd2
push 0xc
jmp 0x5a0dd2
push 0xf
jmp 0x5a0dd2
push 0x15
jmp 0x5a0dd2
push esi
call dword [ebx + 0x14]
pop ecx
jmp 0x5a0c21
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push 7
jmp 0x5a0dd2
push 0xe
jmp 0x5a0dd2
push 0x11
jmp 0x5a0dd2
cmp byte [ebp + 0x20], 0
jne 0x5a0c3f
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x5a0d9a
cmp byte [edi + 0x49], 0
je 0x5a0d6d
test byte [ebp + 0x14], 1
jne 0x5a0d6d
mov ecx, esi
sub ecx, dword [ebp + 0x14]
sar ecx, 1
push ecx
push dword [ebp + 0x14]
push dword [ebx + 4]
call eax
jmp 0x5a0d95
mov eax, dword [ebx + 0x2c]
push dword [ebx + 0x30]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
call dword [edi + 0x40]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push dword [ebx + 4]
call dword [ebx + 0x3c]
add esp, 0xc
jmp 0x5a0db0
cmp dword [ebx + 0x50], 0
je 0x5a0db0
push dword [ebp + 0x14]
mov eax, esi
push edi
mov esi, ebx
call fcn.0059d74c
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5a0dc0
push 3
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
jmp 0x5a0dd2
cmp dword [ebx + 0x138], eax
je 0x5a0ca4
push 0xd
jmp 0x5a0db9
push 0x23
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c