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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
push edi
mov dword [ebp - 0x24], eax
cmp ebx, dword [esi + 0x90]
jne 0x5a8da7d
lea eax, [esi + 0x120]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x124]
jmp 0x5a8da89
mov eax, dword [esi + 0x12c]
mov dword [ebp - 0xc], eax
add eax, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
mov dword [ebp - 8], eax
call dword [ebx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add eax, 5
add esp, 0x10
mov dword [edx], ecx
cmp eax, 0x12
ja case.default.0x5a8dabe
jmp dword [eax*4 + 0x5a8e314]
mov eax, dword [ebx + 0x44]
sub ecx, eax
add eax, dword [ebp + 0x14]
push ecx
push eax
push ebx
call dword [ebx + 0x30]
add esp, 0xc
mov byte [ebp - 2], al
test al, al
je 0x5a8dafa
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5a8daec
lea ecx, [ebp - 2]
jmp 0x5a8e05e
cmp dword [esi + 0x50], 0
je 0x5a8db65
mov eax, dword [ebp - 8]
jmp 0x5a8e176
mov eax, dword [ebx + 0x44]
mov edi, dword [ebp - 8]
sub edi, eax
add eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x50
call fcn.05a8b95a
xor ebx, ebx
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x5a8e162
mov edi, dword [ebp - 0x24]
push ebx
push eax
mov esi, edi
call fcn.05a8a9b1
mov esi, eax
mov eax, dword [edi + 0x60]
pop ecx
pop ecx
mov dword [edi + 0x5c], eax
cmp byte [edi + 0x81], bl
je 0x5a8dba9
cmp byte [edi + 0x82], bl
jne 0x5a8dba9
cmp esi, ebx
jne 0x5a8dbba
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, ebx
je 0x5a8db8f
push ebx
push dword [ebp - 0x20]
push dword [eax + 4]
call ecx
add esp, 0xc
mov esi, dword [ebp + 8]
mov ebx, 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 [esi + 0x1e0]
dec eax
dec eax
je 0x5a8e309
dec eax
jne 0x5a8da94
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x5a8e194
cmp dword [eax + 0x50], ebx
je 0x5a8db5f
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.05a8a80c
pop ecx
pop ecx
jmp 0x5a8db62
cmp esi, ebx
je 0x5a8e237
cmp byte [esi + 0x22], bl
je 0x5a8e23e
cmp byte [esi + 0x20], bl
jne 0x5a8e245
cmp dword [esi + 0x1c], ebx
jne 0x5a8e24c
cmp dword [esi + 4], ebx
je 0x5a8dc03
mov eax, dword [ebp + 8]
cmp byte [eax + 0x134], bl
jne 0x5a8dbeb
mov ecx, dword [eax + 0x78]
cmp ecx, ebx
je 0x5a8db8f
push ebx
push dword [esi]
jmp 0x5a8db57
push ebx
mov ebx, esi
mov esi, eax
call fcn.05a8a6d1
pop ecx
test eax, eax
jne 0x5a8e30c
jmp 0x5a8db62
mov edi, dword [ebp + 8]
cmp dword [edi + 0x70], ebx
je 0x5a8dc4d
mov byte [esi + 0x20], 1
call fcn.05a8b462
mov byte [esi + 0x20], bl
cmp eax, ebx
je 0x5a8e162
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 0x5a8e253
mov eax, dword [edi + 0x1b0]
mov dword [edi + 0x1ac], eax
mov esi, edi
jmp 0x5a8db62
cmp dword [edi + 0x50], ebx
je 0x5a8db5f
mov esi, edi
jmp 0x5a8db97
mov edi, dword [esi + 0x170]
test edi, edi
je 0x5a8dc71
mov ecx, dword [edi]
mov dword [esi + 0x170], ecx
jmp 0x5a8dc98
push 0x30
call dword [esi + 0xc]
mov edi, eax
pop ecx
test edi, edi
je 0x5a8e162
push 0x20
call dword [esi + 0xc]
pop ecx
mov dword [edi + 0x24], eax
test eax, eax
je 0x5a8e25a
add eax, 0x20
mov dword [edi + 0x28], eax
xor ecx, ecx
lea eax, [edi + 0x2c]
mov dword [eax], ecx
mov edx, dword [esi + 0x16c]
mov dword [edi], edx
mov dword [esi + 0x16c], edi
mov dword [ebp - 0x2c], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov eax, dword [ebx + 0x44]
add eax, dword [ebp + 0x14]
push eax
push ebx
mov dword [edi + 4], eax
call dword [ebx + 0x20]
mov dword [edi + 8], eax
inc dword [esi + 0x138]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
add eax, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x28]
dec ecx
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x1c
jmp 0x5a8dd39
mov eax, dword [edi + 0x28]
sub eax, ecx
add eax, eax
push eax
push ecx
mov dword [ebp - 0x28], eax
call dword [esi + 0x10]
pop ecx
pop ecx
test eax, eax
je 0x5a8e162
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0x24], eax
add ecx, eax
add eax, dword [ebp - 0x20]
mov dword [edi + 0x28], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x28]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x14
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jne 0x5a8dcf8
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x2c]
mov dword [edi + 0x18], eax
lea eax, [edi + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ecx], 0
push dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
push ebx
push esi
call fcn.05a8d157
add esp, 0x14
test eax, eax
jne 0x5a8e30c
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5a8dd96
push dword [esi + 0x188]
mov ecx, dword [ebp - 0x28]
push dword [ecx]
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x5a8ddaa
cmp dword [esi + 0x50], 0
je 0x5a8ddaa
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push ebx
call fcn.05a8a80c
pop ecx
pop ecx
lea eax, [esi + 0x1a0]
call fcn.05a8ac76
jmp 0x5a8db65
mov eax, dword [ebx + 0x44]
add eax, dword [ebp + 0x14]
and dword [ebp - 0x1c], 0
push eax
add esi, 0x1a0
push ebx
mov dword [ebp - 0x20], eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x2c], esi
call dword [ebx + 0x20]
push dword [ebp - 0x20]
mov edi, eax
add edi, dword [ebp - 0x20]
mov eax, esi
call fcn.05a8b95a
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x5a8e162
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.05a8d157
add esp, 0x14
cmp eax, ebx
jne 0x5a8e30c
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x5a8de4d
push dword [esi + 0x188]
push dword [ebp - 0x48]
push dword [esi + 4]
call eax
add esp, 0xc
mov byte [ebp - 1], bl
cmp dword [esi + 0x38], ebx
je 0x5a8de6f
cmp dword [esi + 0x34], ebx
je 0x5a8de61
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push dword [ebp - 0x48]
push dword [esi + 4]
call dword [esi + 0x38]
pop ecx
pop ecx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x5a8de89
cmp dword [esi + 0x50], ebx
je 0x5a8de89
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.05a8a80c
pop ecx
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.05a8ac76
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
je 0x5a8decb
mov eax, dword [esi + 0x68]
mov ebx, edi
test eax, eax
je 0x5a8deac
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 0x5a8de98
cmp dword [esi + 0x138], 0
jne 0x5a8db62
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
push esi
call fcn.05a8cc2c
add esp, 0x10
jmp 0x5a8e30c
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x138], eax
je 0x5a8e1e4
mov edi, dword [esi + 0x16c]
mov ecx, dword [edi]
mov dword [esi + 0x16c], ecx
mov ecx, dword [esi + 0x170]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x170], edi
mov eax, dword [ebx + 0x44]
lea eax, [ecx + eax*2]
push eax
push ebx
mov dword [ebp - 0x20], eax
call dword [ebx + 0x20]
pop ecx
pop ecx
cmp eax, dword [edi + 8]
jne 0x5a8e264
push eax
push dword [ebp - 0x20]
push dword [edi + 4]
call fcn.05acac18
add esp, 0xc
test eax, eax
jne 0x5a8e264
dec dword [esi + 0x138]
cmp dword [esi + 0x38], eax
je 0x5a8dfab
mov edx, dword [edi + 0x10]
cmp byte [esi + 0xec], al
je 0x5a8dfa0
test edx, edx
je 0x5a8dfa0
mov eax, dword [edi + 0x1c]
add eax, dword [edi + 0xc]
jmp 0x5a8df73
mov byte [eax], cl
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x5a8df6f
mov edx, dword [edi + 0x14]
cmp byte [esi + 0xed], cl
je 0x5a8df9d
test edx, edx
je 0x5a8df9d
mov cl, byte [esi + 0x1d8]
mov byte [eax], cl
inc eax
jmp 0x5a8df97
mov byte [eax], cl
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x5a8df93
mov byte [eax], 0
push dword [edi + 0xc]
push dword [esi + 4]
call dword [esi + 0x38]
jmp 0x5a8dfbd
cmp dword [esi + 0x50], 0
je 0x5a8dffc
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push ebx
call fcn.05a8a80c
pop ecx
pop ecx
jmp 0x5a8dffc
mov ecx, dword [esi + 0x68]
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x5a8dfdc
mov eax, dword [eax]
push dword [eax]
push dword [esi + 4]
call ecx
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [edi + 0x2c]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esi + 0x178]
mov dword [eax + 4], ecx
mov dword [esi + 0x178], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [ecx + 4], eax
cmp dword [edi + 0x2c], 0
jne 0x5a8dfc1
cmp dword [esi + 0x138], 0
je 0x5a8ded8
jmp 0x5a8db65
push dword [ebp + 0x14]
push ebx
call dword [ebx + 0x2c]
pop ecx
pop ecx
test eax, eax
js 0x5a8e273
cmp dword [esi + 0x3c], 0
je 0x5a8daec
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.05aad9f6
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0x14
jmp 0x5a8db65
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x5a8dabe
mov byte [ebp - 1], 0xa
lea ecx, [ebp - 1]
push 1
push ecx
push dword [esi + 4]
call eax
jmp 0x5a8e134
mov eax, dword [esi + 0x48]
test eax, eax
je 0x5a8e079
push dword [esi + 4]
call eax
jmp 0x5a8e08b
cmp dword [esi + 0x50], 0
je 0x5a8e08c
push dword [ebp + 0x14]
mov eax, ecx
push ebx
call fcn.05a8a80c
pop ecx
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 8]
push dword [ebp + 0x1c]
push edi
push eax
mov edi, ebx
mov eax, esi
call fcn.05a8b109
add esp, 0x10
test eax, eax
jne 0x5a8e30c
cmp dword [ebp - 8], eax
jne 0x5a8db65
mov dword [esi + 0x118], 0x5a8bc15
jmp 0x5a8e194
mov edi, dword [esi + 0x3c]
test edi, edi
je case.default.0x5a8dabe
cmp byte [ebx + 0x48], 0
jne 0x5a8e128
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
jmp 0x5a8e0f9
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x18]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call edi
mov eax, dword [ebp + 0x14]
add esp, 0x20
cmp eax, dword [ebp - 8]
jne 0x5a8e0e4
jmp 0x5a8db65
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
push dword [esi + 4]
call edi
add esp, 0xc
jmp 0x5a8db65
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.05a8c541
jmp 0x5a8e159
push dword [ebp + 0x14]
mov eax, ecx
mov ecx, ebx
mov edx, esi
call fcn.05a8c5ed
pop ecx
test eax, eax
jne 0x5a8db65
xor eax, eax
inc eax
jmp 0x5a8e30c
cmp dword [esi + 0x50], 0
je 0x5a8db65
mov eax, ecx
push dword [ebp + 0x14]
push ebx
call fcn.05a8a80c
pop ecx
pop ecx
jmp 0x5a8db65
cmp byte [ebp + 0x20], 0
je 0x5a8e19b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
xor eax, eax
jmp 0x5a8e30c
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5a8e1bb
push 1
lea ecx, [ebp + 0xb]
push ecx
push dword [esi + 4]
mov byte [ebp + 0xb], 0xa
call eax
add esp, 0xc
jmp 0x5a8e1ce
cmp dword [esi + 0x50], 0
je 0x5a8e1ce
push dword [ebp + 0x14]
mov eax, edi
push ebx
call fcn.05a8a80c
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5a8e1dc
push 3
jmp 0x5a8e30b
cmp dword [esi + 0x138], eax
je 0x5a8e1eb
push 0xd
jmp 0x5a8e30b
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
jmp 0x5a8e194
cmp byte [ebp + 0x20], 0
jne 0x5a8e18c
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x5a8e1d5
cmp dword [esi + 0x138], eax
je 0x5a8e18c
jmp 0x5a8e1e4
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
push 4
jmp 0x5a8e30b
cmp byte [ebp + 0x20], 0
jne 0x5a8e18c
push 5
jmp 0x5a8e30b
cmp byte [ebp + 0x20], 0
jne 0x5a8e18c
push 6
jmp 0x5a8e30b
push 0xb
jmp 0x5a8e30b
push 0x18
jmp 0x5a8e30b
push 0xc
jmp 0x5a8e30b
push 0xf
jmp 0x5a8e30b
push 0x15
jmp 0x5a8e30b
push edi
call dword [esi + 0x14]
pop ecx
jmp 0x5a8e162
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push 7
jmp 0x5a8e30b
push 0xe
jmp 0x5a8e30b
push 0x11
jmp 0x5a8e30b
cmp byte [ebp + 0x20], 0
jne 0x5a8e18c
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5a8e2d6
cmp byte [ebx + 0x48], 0
jne 0x5a8e2c3
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 8]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0x20
jmp 0x5a8e2e9
mov ecx, edi
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x5a8e2e9
cmp dword [esi + 0x50], 0
je 0x5a8e2e9
push dword [ebp + 0x14]
mov eax, edi
push ebx
call fcn.05a8a80c
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5a8e2f9
push 3
mov ecx, dword [ebp - 0xc]
mov dword [ecx], edi
jmp 0x5a8e30b
cmp dword [esi + 0x138], eax
je 0x5a8e1eb
push 0xd
jmp 0x5a8e2f2
push 0x23
pop eax
pop edi
pop esi
pop ebx
leave
ret