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

Disassembly:
sub esp, 0x3c
push ebp
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
push esi
push edi
test eax, eax
je 0x5a22ce
push eax
call dword [0x69fd8c]
add esp, 4
mov edi, dword [ebp + 0x18]
call fcn.00561bf0
mov eax, dword [ebp]
test eax, eax
je 0x5a22ee
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5a22ee
push eax
call dword [0x69fd8c]
add esp, 4
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x5a2303
cmp esi, 5
je 0x5a2303
cmp esi, 6
jne 0x5a2c2c
cmp dword [ebp], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0
je 0x5a233d
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x5a233d
mov esi, 5
jmp 0x5a23e4
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x5a2371
push 2
push ecx
call fcn.0059f470
mov esi, eax
add esp, 8
test esi, esi
jne 0x5a23e4
mov eax, dword [ebp + 4]
lea ecx, [ebp + 8]
push ecx
push 1
mov dword [ebp + 0xc], 1
call fcn.00562950
add esp, 8
mov eax, dword [ebp + 0x18]
cmp byte [eax + 8], 0
mov dword [esp + 0x10], eax
jne 0x5a23e4
mov edi, eax
mov esi, dword [edi + 4]
xor ebx, ebx
call fcn.00561bf0
mov edx, edi
mov al, byte [edx + 8]
cmp al, 2
je 0x5a23b4
cmp al, 1
je 0x5a23b4
movzx ecx, word [esi + 0x16]
test cl, 0x40
je 0x5a24ad
mov eax, dword [esi + 0x4c]
cmp dword [eax], ebx
je 0x5a24ad
mov ebx, 0x106
mov edi, edx
cmp byte [edi + 9], 0
je 0x5a23da
add dword [edi + 0xc], 0xffffffff
jne 0x5a23da
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x5a23d6
push eax
call dword [0x69fd94]
add esp, 4
mov byte [edi + 0xa], 0
mov esi, ebx
mov dword [esp + 0x2c], 1
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], eax
test esi, esi
jne 0x5a2418
cmp eax, 5
jne 0x5a2418
cmp edx, edi
je 0x5a2418
lea esi, [eax + 3]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x54]
test eax, eax
jl 0x5a2439
cmp dword [esp + 0x20], eax
jge 0x5a25b4
mov edi, dword [ebp + 0x10]
cmp edi, ecx
ja 0x5a25b4
test esi, esi
jne 0x5a25f4
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 4]
mov eax, dword [0x69fe40]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x5a2498
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
lea eax, [esi + 2]
mov ebx, edi
call fcn.005866a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5a2498
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 4]
push esi
push eax
push edi
push ebp
call fcn.00586d60
push ebx
mov esi, eax
call fcn.00599160
add esp, 0x14
mov ecx, dword [esp + 0x18]
mov eax, 1
add dword [ebp + 0x10], eax
add dword [esp + 0x20], eax
jmp 0x5a2427
mov edi, edx
mov eax, dword [edi + 4]
cmp byte [edi + 9], bl
je 0x5a24ea
cmp dword [eax + 0x4c], edi
je 0x5a24cc
test byte [eax + 0x16], 0x20
je 0x5a24cc
mov ebx, 0x106
jmp 0x5a23b6
mov eax, dword [eax + 0x48]
test eax, eax
je 0x5a24ea
cmp dword [eax], edi
je 0x5a24e3
cmp dword [eax + 4], 1
jne 0x5a24e3
cmp byte [eax + 8], 1
jne 0x5a24c2
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x5a24d3
mov eax, ecx
xor ebx, ebx
and eax, 0xfff7
mov word [esi + 0x16], ax
cmp dword [esi + 0x2c], ebx
jne 0x5a2503
or eax, 8
mov word [esi + 0x16], ax
cmp dword [esi + 0xc], 0
jne 0x5a251a
push esi
call fcn.0059f180
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5a2503
jmp 0x5a251e
test ebx, ebx
je 0x5a2537
cmp byte [esi + 0x14], 0
jne 0x5a2537
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5a2537
call fcn.0059a530
mov dword [esi + 0xc], 0
cmp bl, 5
jne 0x5a2574
cmp byte [esi + 0x14], 0
jne 0x5a2574
mov edi, dword [esi + 4]
add edi, 0x1b4
je 0x5a2574
mov ecx, dword [edi]
test ecx, ecx
je 0x5a2574
mov eax, dword [edi + 8]
test eax, eax
jl 0x5a2574
mov edx, dword [edi + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x5a256d
inc dword [edi + 8]
jmp 0x5a2503
mov dword [edi + 8], 0xffffffff
mov edi, dword [esp + 0x10]
test ebx, ebx
jne 0x5a23b6
cmp byte [edi + 8], bl
jne 0x5a259d
inc dword [esi + 0x28]
cmp byte [edi + 9], bl
je 0x5a259d
mov byte [edi + 0x24], 1
mov eax, dword [esi + 0x48]
lea ecx, [edi + 0x1c]
mov dword [edi + 0x28], eax
mov dword [esi + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [esi + 0x14], 1
jae 0x5a23b6
mov byte [esi + 0x14], 1
jmp 0x5a23b6
test esi, esi
jne 0x5a25f4
mov eax, dword [ebp + 0x10]
mov edx, ecx
sub edx, eax
inc edx
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x20], edx
cmp eax, ecx
ja 0x5a25fd
cmp dword [ebp + 0x28], esi
jne 0x5a2aa6
mov ecx, ebp
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov edx, dword [eax + 0x58]
add eax, 0x58
mov dword [ecx + 0x2c], edx
mov dword [eax], ecx
mov dword [ecx + 0x28], 1
jmp 0x5a2aa6
cmp esi, 0x65
jne 0x5a2aa6
test ecx, ecx
jne 0x5a2657
mov edi, dword [ebp + 4]
call fcn.00561bf0
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
mov ecx, dword [edi + 4]
push ecx
call fcn.00586bc0
add esp, 4
cmp byte [edi + 9], 0
mov esi, eax
je 0x5a2645
add dword [edi + 0xc], 0xffffffff
jne 0x5a2645
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x5a2641
push eax
call dword [0x69fd94]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, 1
mov dword [esp + 0x18], ebx
test esi, esi
je 0x5a2657
cmp esi, 0x65
jne 0x5a26c1
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 4]
mov esi, dword [edi + 4]
inc ebx
call fcn.00561bf0
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + 0x38]
mov eax, dword [eax + 0x44]
push eax
call fcn.005869c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5a2699
mov ecx, ebx
mov edx, ebx
shr ecx, 0x18
shr edx, 0x10
mov eax, ebx
shr eax, 8
mov byte [ebp + 0x28], cl
mov byte [ebp + 0x29], dl
mov byte [ebp + 0x2a], al
mov byte [ebp + 0x2b], bl
cmp byte [edi + 9], 0
je 0x5a26bd
add dword [edi + 0xc], 0xffffffff
jne 0x5a26bd
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x5a26b9
push eax
call dword [0x69fd94]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, dword [esp + 0x18]
test esi, esi
jne 0x5a2aa6
mov edi, dword [esp + 0x50]
mov eax, dword [edi]
test eax, eax
je 0x5a26d8
call fcn.00580d30
cmp dword [esp + 0x38], 5
jne 0x5a26f6
mov eax, dword [edi + 4]
push 2
call fcn.005a20d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5a2aa6
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [esp + 0x10]
jge 0x5a272e
mov eax, dword [esp + 0x10]
cdq
idiv ebp
mov ecx, eax
lea eax, [ecx + ebx - 1]
cdq
idiv ecx
mov edx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x69fe40]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x5a273a
dec edi
jmp 0x5a273a
mov eax, ebp
cdq
idiv dword [esp + 0x10]
mov edi, eax
imul edi, ebx
cmp ebp, dword [esp + 0x10]
jge 0x5a29cb
mov eax, ebp
cdq
mov ecx, eax
mov eax, dword [esp + 0x18]
mov ebx, edx
push ebx
cdq
push ecx
push edx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
call fcn.005e5510
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], eax
jmp 0x5a2780
cmp edi, dword [esp + 0x38]
ja 0x5a27d4
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [0x69fe40]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x5a27cd
lea edx, [esp + 0x30]
push edx
xor eax, eax
mov ebx, edi
mov ecx, ebp
call fcn.005866a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5a27cd
mov ebx, dword [esp + 0x30]
push ebx
call fcn.005869c0
push ebx
mov esi, eax
call fcn.00599160
add esp, 8
inc edi
test esi, esi
je 0x5a2780
jmp 0x5a27e7
test esi, esi
jne 0x5a27e7
push 1
push esi
mov eax, ebp
call fcn.0059eb70
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x10]
mov edi, dword [0x69fe40]
mov ecx, dword [esp + 0x40]
add eax, edi
cdq
cmp edx, ecx
jg 0x5a280e
jl 0x5a2804
cmp eax, dword [esp + 0x3c]
jae 0x5a280e
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x5a281a
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
add eax, edi
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
test esi, esi
jne 0x5a2aa6
mov ebp, eax
jmp 0x5a2840
mov edi, dword [esp + 0x34]
cmp edi, dword [esp + 0x14]
jg 0x5a293d
jl 0x5a285a
cmp ebp, dword [esp + 0x10]
jae 0x5a293d
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push edi
push ebp
mov dword [esp + 0x34], 0
call fcn.005e5550
mov ecx, dword [esp + 0x2c]
mov ebx, eax
inc ebx
xor eax, eax
call fcn.005866a0
mov ebx, dword [esp + 0x24]
mov esi, eax
add esp, 4
test esi, esi
jne 0x5a28af
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [ecx]
push edi
push ebp
push esi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov esi, eax
test ebx, ebx
je 0x5a2920
test byte [ebx + 0x18], 0x40
mov edi, dword [ebx + 0x10]
je 0x5a28fe
mov ecx, dword [edi + 0x88]
dec dword [edi + 0x78]
mov dword [ebx + 0xc], ecx
mov eax, dword [edi + 0x98]
mov ebp, dword [edi + 0x3c]
mov dword [edi + 0x88], ebx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x14]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.005e5510
push edx
push eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x48]
push ebp
call edx
mov ebp, dword [esp + 0x40]
add esp, 0x10
jmp 0x5a2905
mov eax, ebx
call fcn.0055f8e0
cmp dword [edi + 0x78], 0
jne 0x5a2920
mov eax, dword [edi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x5a2920
push edi
call fcn.00599100
add esp, 4
add ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
adc dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebp
test esi, esi
je 0x5a2840
jmp 0x5a2aa6
test esi, esi
jne 0x5a2aa6
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea eax, [esp + 0x44]
push eax
push esi
call ecx
add esp, 8
test eax, eax
jne 0x5a2986
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
cmp edx, ecx
jl 0x5a2986
jg 0x5a2975
mov edx, dword [esp + 0x44]
cmp edx, dword [esp + 0x3c]
jbe 0x5a2986
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push esi
call edx
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x5a2aa6
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 7], al
jne 0x5a29ab
movzx eax, byte [ecx + 0xb]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
jmp 0x5a29db
mov ecx, dword [ecx + 0x3c]
cmp dword [ecx], 0
je 0x5a29de
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 8
push ecx
call eax
add esp, 0xc
cmp eax, 0xc
jne 0x5a29de
xor eax, eax
jmp 0x5a29de
mov eax, dword [esp + 0x24]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.0059eb70
add esp, 8
mov esi, eax
test esi, esi
jne 0x5a2aa6
mov ecx, dword [esp + 0x50]
mov edi, dword [ecx + 4]
cmp byte [edi + 8], al
je 0x5a2aa1
call fcn.00561bf0
cmp byte [edi + 8], 2
jne 0x5a2a78
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x38], ebx
test eax, eax
jne 0x5a2b36
cmp byte [esi + 0xf], 2
jne 0x5a2b0c
cmp byte [esi + 4], al
je 0x5a2b0c
cmp byte [esi + 5], 1
jne 0x5a2b0c
mov byte [esi + 0xf], 1
mov ebp, dword [ebx + 0x3c]
mov byte [ebx + 0x14], 1
test ebp, ebp
je 0x5a2a71
cmp dword [ebp + 8], 0
je 0x5a2a64
lea esi, [ebp + 0xc]
mov ebx, 0x7d
mov ecx, dword [esi]
push ecx
call fcn.0055f690
add esp, 4
add esi, 4
sub ebx, 1
jne 0x5a2a51
push ebp
call fcn.0055d790
mov ebx, dword [esp + 0x3c]
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.0059a820
cmp byte [edi + 9], 0
je 0x5a2aa1
add dword [edi + 0xc], 0xffffffff
jne 0x5a2aa1
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x5a2a9d
push eax
call dword [0x69fd94]
add esp, 4
mov byte [edi + 0xa], 0
mov esi, 0x65
cmp dword [esp + 0x2c], 0
je 0x5a2c15
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x18]
push 0
call fcn.0059fc40
mov edi, dword [edi + 0x18]
add esp, 4
cmp byte [edi + 8], 0
je 0x5a2c15
call fcn.00561bf0
cmp byte [edi + 8], 2
jne 0x5a2bec
mov ebx, dword [edi + 4]
mov ebp, dword [ebx]
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x38], ebx
test eax, eax
jne 0x5a2bf1
cmp byte [ebp + 0xf], 2
jne 0x5a2b71
cmp byte [ebp + 4], al
je 0x5a2b71
cmp byte [ebp + 5], 1
jne 0x5a2b71
mov byte [ebp + 0xf], 1
jmp 0x5a2b9f
movzx edx, byte [esi + 0x12]
push 1
push edx
mov eax, esi
call fcn.0056ae80
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x5a2b2f
cmp ecx, 0xa
jne 0x5a2b36
mov dword [esi + 0x28], eax
mov byte [esi + 0xf], 6
mov esi, eax
test esi, esi
je 0x5a2a38
cmp byte [edi + 9], 0
je 0x5a2aa6
add dword [edi + 0xc], 0xffffffff
jne 0x5a2aa6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x5a2b68
push eax
call dword [0x69fd94]
add esp, 4
mov byte [edi + 0xa], 0
jmp 0x5a2aa6
movzx eax, byte [ebp + 0x12]
push 1
push eax
mov eax, ebp
call fcn.0056ae80
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x5a2b94
cmp ecx, 0xa
jne 0x5a2b9b
mov dword [ebp + 0x28], eax
mov byte [ebp + 0xf], 6
test eax, eax
jne 0x5a2bf1
mov eax, dword [ebx + 0x3c]
mov byte [ebx + 0x14], 1
mov dword [esp + 0x2c], eax
test eax, eax
je 0x5a2be5
cmp dword [eax + 8], 0
je 0x5a2bd4
mov ebp, eax
add ebp, 0xc
mov ebx, 0x7d
mov edi, edi
mov edx, dword [ebp]
push edx
call fcn.0055f690
add esp, 4
add ebp, 4
sub ebx, 1
jne 0x5a2bc0
mov eax, dword [esp + 0x2c]
push eax
call fcn.0055d790
mov ebx, dword [esp + 0x3c]
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.0059a820
cmp byte [edi + 9], 0
je 0x5a2c15
add dword [edi + 0xc], 0xffffffff
jne 0x5a2c15
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x5a2c11
push eax
call dword [0x69fd94]
add esp, 4
mov byte [edi + 0xa], 0
pop ebx
cmp esi, 0xc0a
jne 0x5a2c23
mov esi, 7
mov edx, dword [esp + 0x4c]
mov dword [edx + 0x1c], esi
mov ebp, edx
mov eax, dword [ebp]
test eax, eax
je 0x5a2c44
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5a2c44
push eax
call dword [0x69fd94]
add esp, 4
mov edi, dword [ebp + 0x18]
cmp byte [edi + 9], 0
je 0x5a2c6b
add dword [edi + 0xc], 0xffffffff
jne 0x5a2c6b
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x5a2c67
push eax
call dword [0x69fd94]
add esp, 4
mov byte [edi + 0xa], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x5a2c7f
push eax
call dword [0x69fd94]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x3c
ret