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

Disassembly:
push 0x164
push 0x310b880
call fcn.03105bbc
mov eax, edx
mov dword [ebp - 0x134], eax
mov ebx, ecx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x16c], eax
xor edi, edi
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x14c], edi
mov edx, 0x350
call fcn.03058a94
mov esi, eax
mov dword [ebp - 0x150], esi
test esi, esi
jne 0x305a90d
mov eax, 0x8007000e
jmp 0x305b042
mov ecx, dword [ebx + 8]
lea edx, [esi + 0x1c]
mov eax, dword [ecx]
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x130]
push dword [ebx]
call dword [eax + 0x3c]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x305a965
push 0x34
push edi
lea ecx, [esi + 0x1c]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
push dword [ebp - 0x148]
push dword [ebp - 0x130]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x301cbf8
push 8
push ecx
call dword [eax + 4]
add esp, 0x1c
mov ecx, dword [ebx + 8]
lea edx, [esi + 0x68]
mov eax, dword [ecx]
lea esi, [ebp - 0x13c]
push esi
push 0x168
push edx
lea edx, [ebp - 0x160]
push edx
push dword [ebp - 0x130]
call dword [eax + 0x30]
mov dword [ebp - 0x138], eax
test eax, eax
mov esi, dword [ebp - 0x150]
je 0x305aa2d
mov dword [ebp - 0x13c], edi
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
lea eax, [ebp - 0x14c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x130]
push dword [ebx]
call dword [edx + 0x38]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x305aa18
or dword [ebx + 0x78], 4
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
mov esi, dword [ebp - 0x138]
push esi
push dword [ebp - 0x130]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x301cc38
push 4
push eax
call dword [ecx + 4]
add esp, 0x1c
mov eax, esi
jmp 0x305b042
push 0x168
mov edx, dword [ebp - 0x130]
lea ecx, [esi + 0x68]
call fcn.0305d7e8
jmp 0x305aa30
lea ecx, [esi + 0x68]
test byte [ebx + 0x18], 0x80
je 0x305aa43
call fcn.0305a68e
mov dword [esi + 0x338], eax
jmp 0x305aa49
mov dword [esi + 0x338], ecx
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov edx, dword [ebp + 0x10]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x33c], eax
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x54]
mov dword [ebp - 0x158], ecx
mov dword [ecx], edi
mov dword [esi + 0x58], edi
lea ecx, [esi + 0x5c]
mov dword [ebp - 0x15c], ecx
mov dword [ecx], edi
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x305aeca
lea edx, [ebp - 0x128]
call fcn.030651b4
mov ecx, eax
mov dword [ebp - 0x140], ecx
test ecx, ecx
jne 0x305aaea
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
push dword [ebp - 0x13c]
call dword [eax + 0x34]
or dword [ebx + 0x78], 4
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
mov esi, dword [ebp - 0x138]
push esi
push dword [ebp - 0x130]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x301cc80
push 4
push eax
call dword [ecx + 4]
add esp, 0x1c
mov eax, 0x80070482
jmp 0x305b042
mov edx, 0x20b
mov ax, word [ecx + 0x5e]
cmp word [ecx + 0x18], dx
mov word [esi + 0x348], ax
test dword [ebx + 0x18], 0x80000
je 0x305ad9b
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 0x3c]
cmp word [ecx + 0x18], dx
mov ecx, dword [ecx + 0x54]
add eax, ecx
mov dword [ebp - 0x148], eax
push eax
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push edi
push 0xe
mov edx, dword [ebp - 0x134]
mov ecx, ebx
call fcn.0305e4ae
test eax, eax
je 0x305ab71
mov edx, dword [ebx + 0x14]
mov esi, dword [edx]
mov ecx, dword [ebp - 0x13c]
push dword [ecx + 0x3c]
push dword [ebp - 0x148]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp - 0x130]
push 0x301ccc8
push 2
push edx
call dword [esi + 4]
add esp, 0x24
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x140]
mov ecx, 0x20b
cmp word [eax + 0x18], cx
lea edx, [eax + 0x88]
je 0x305ab8b
lea edx, [eax + 0x78]
mov dword [ebp - 0x12c], edx
mov eax, edi
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x158], 0x1c
jmp 0x305aba8
mov esi, dword [ebp + 0x10]
mov ecx, dword [edx + eax*8]
test ecx, ecx
je 0x305ad85
mov edx, dword [edx + eax*8 + 4]
test edx, edx
je 0x305ad7f
push edx
xor eax, eax
add ecx, dword [ebp + 0xc]
adc eax, esi
push eax
push ecx
push edi
push 0xe
mov edx, dword [ebp - 0x134]
mov ecx, ebx
call fcn.0305e4ae
mov esi, eax
test esi, esi
je 0x305ac13
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x12c]
push dword [ecx + eax*8 + 4]
push dword [ecx + eax*8]
push esi
mov esi, dword [ebp - 0x130]
push esi
push eax
push 0x301cd08
push 2
mov ecx, dword [ebx + 0x14]
push ecx
call dword [edx + 4]
add esp, 0x20
jmp 0x305ac19
mov esi, dword [ebp - 0x130]
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x305ad7f
lea eax, [ebp - 0x15c]
push eax
push ecx
mov ecx, dword [ebp - 0x13c]
call fcn.030652e4
mov ecx, eax
test ecx, ecx
je 0x305ad79
mov eax, dword [ebp - 0x15c]
xor edx, edx
div dword [ebp - 0x158]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x305ad79
lea edx, [ecx + 0x10]
mov dword [ebp - 0x144], edx
push dword [edx]
mov ecx, dword [edx + 4]
xor eax, eax
add ecx, dword [ebp + 0xc]
adc eax, dword [ebp + 0x10]
push eax
push ecx
push edi
push 0xe
mov edx, dword [ebp - 0x134]
mov ecx, ebx
call fcn.0305e4ae
mov dword [ebp - 0x138], eax
test eax, eax
je 0x305acc2
mov edx, dword [ebx + 0x14]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x144]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x138]
push esi
mov esi, eax
push dword [esi - 4]
push 0x301cd48
push 2
push edx
call dword [ecx + 4]
add esp, 0x24
jmp 0x305acc8
mov esi, dword [ebp - 0x144]
test dword [ebx + 0x18], 0x100000
je 0x305ad56
cmp dword [esi - 4], 2
jne 0x305ad56
mov edx, dword [esi]
mov ecx, ebx
call fcn.03058a94
mov dword [ebp - 0x138], eax
test eax, eax
je 0x305ad56
mov esi, dword [ebx + 8]
mov edi, dword [esi]
mov edx, dword [ebp - 0x144]
push dword [edx]
push eax
mov edx, dword [edx + 4]
xor ecx, ecx
add edx, dword [ebp + 0xc]
adc ecx, dword [ebp + 0x10]
push ecx
push edx
push dword [ebx]
mov ecx, esi
call dword [edi + 0x78]
mov esi, dword [ebp - 0x144]
test eax, eax
jne 0x305ad3c
push dword [esi]
push dword [ebp - 0x138]
mov ecx, dword [esi + 4]
add ecx, dword [ebp + 0xc]
adc eax, dword [ebp + 0x10]
push eax
push ecx
push 1
mov edx, dword [ebp - 0x134]
mov ecx, ebx
call fcn.03058c21
mov eax, dword [ebp - 0x138]
xor edi, edi
test eax, eax
je 0x305ad56
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ebp - 0x138]
call dword [eax + 0xc]
push 0x1c
pop eax
add esi, eax
mov dword [ebp - 0x144], esi
dec dword [ebp - 0x148]
mov esi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x144]
jne 0x305ac6a
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x140], eax
cmp eax, 0x10
jb 0x305aba5
mov esi, dword [ebp - 0x150]
mov dword [ebp - 4], edi
movzx eax, word [ebp - 0x124]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xd8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xd0]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x18], eax
cmp dword [ebp - 0xa4], 9
jbe 0x305adde
cmp dword [ebp - 0x54], 0
jbe 0x305adde
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14c], eax
test byte [esi + 0x33c], 8
je 0x305ae05
lea eax, [esi + 0x54]
push eax
lea eax, [esi + 0x50]
push eax
push ecx
push 2
push dword [ebp - 0x160]
mov edx, dword [ebp - 0x13c]
mov ecx, ebx
call fcn.03059a90
test byte [esi + 0x33c], 4
je 0x305ae2c
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x58]
push eax
push ecx
push 4
push dword [ebp - 0x160]
mov edx, dword [ebp - 0x13c]
mov ecx, ebx
call fcn.03059a90
mov dword [ebp - 0x164], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x305ae80
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
push dword [ebp - 0x13c]
call dword [eax + 0x34]
test edi, edi
je 0x305b015
or dword [ebx + 0x78], 4
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx]
push edi
push dword [ebp - 0x130]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x301cd90
push 4
push ecx
call dword [edx + 4]
add esp, 0x1c
mov eax, edi
jmp 0x305b042
mov dword [ebp - 0x12c], edi
test al, 8
je 0x305af7b
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
lea esi, [ebp - 0x12c]
push esi
push edi
push 2
push edx
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x150]
lea edx, [esi + 0x68]
push edx
mov edx, dword [ebp - 0x134]
push dword [edx + 0x40]
call dword [eax + 0x40]
test eax, eax
jne 0x305af7b
mov edx, dword [ebp - 0x12c]
cmp edx, 0x2800
ja 0x305af7b
mov ecx, ebx
call fcn.03058a94
mov dword [esi + 0x50], eax
test eax, eax
je 0x305af7b
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x54], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push dword [ebp - 0x158]
push eax
push 2
push dword [esi + 0xc]
push dword [esi + 8]
lea eax, [esi + 0x68]
push eax
mov eax, dword [ebp - 0x134]
push dword [eax + 0x40]
call dword [edx + 0x40]
test eax, eax
je 0x305af65
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [esi + 0x50]
call dword [eax + 0xc]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
jmp 0x305af7b
test dword [ebx + 0x18], 0x100000
je 0x305af7b
push 1
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
call fcn.03058b91
mov dword [ebp - 0x12c], edi
test byte [esi + 0x33c], 4
je 0x305b015
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x12c]
push edx
push edi
push 2
push dword [esi + 0xc]
push dword [esi + 8]
lea edx, [esi + 0x68]
push edx
mov edx, dword [ebp - 0x134]
push dword [edx + 0x40]
call dword [eax + 0x40]
test eax, eax
jne 0x305b015
mov edx, dword [ebp - 0x12c]
cmp edx, 0x2800
ja 0x305b015
mov ecx, ebx
call fcn.03058a94
mov dword [esi + 0x58], eax
test eax, eax
je 0x305b015
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x5c], ecx
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push dword [ebp - 0x15c]
push eax
push 4
push dword [esi + 0xc]
push dword [esi + 8]
lea eax, [esi + 0x68]
push eax
mov eax, dword [ebp - 0x134]
push dword [eax + 0x40]
call dword [edx + 0x40]
test eax, eax
je 0x305b015
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [esi + 0x58]
call dword [eax + 0xc]
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
cmp dword [ebp - 0x14c], 0
je 0x305b038
push dword [ebp - 0x14c]
push dword [ebp - 0x154]
push esi
mov edx, dword [ebp - 0x134]
mov ecx, ebx
call fcn.0305a6bd
mov eax, dword [ebp - 0x16c]
mov dword [eax], esi
xor eax, eax
call fcn.03105c04
ret 0x14