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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push 0xd0
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x305a42c
mov ecx, dword [ebp + 0x1c]
add ecx, 8
mov dword [ebp - 8], ecx
jmp 0x305a435
mov edx, dword [ebp + 0x1c]
add edx, 7
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 0x40000
je 0x305a44c
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 4
je 0x305a460
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
add eax, 0x78
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x78], eax
je 0x305a477
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
add eax, 0x80
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x80], eax
je 0x305a493
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 0x800
je 0x305a4aa
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 0x1000
je 0x305a4c1
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
imul eax, eax, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], 0x20
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 8]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0305a120
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x305a531
mov eax, dword [ebp - 0xc]
jmp 0x305a901
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x18]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x20]
add ecx, 0xe8
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x24], ecx
cmp dword [ebp + 0x14], 0
je 0x305a57d
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x28], 0xa8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x90]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x50]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x90], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x28]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.03058df0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x305a5bd
mov eax, dword [ebp - 0xc]
jmp 0x305a901
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.03058ff0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x305a5df
mov eax, dword [ebp - 0xc]
jmp 0x305a901
mov eax, dword [ebp + 0xc]
add eax, 0x78
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x78], eax
je 0x305a60b
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.03059150
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x305a60b
mov eax, dword [ebp - 0xc]
jmp 0x305a901
mov ecx, dword [ebp + 0xc]
add ecx, 0x80
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x80], ecx
je 0x305a641
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.03059250
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x305a641
mov eax, dword [ebp - 0xc]
jmp 0x305a901
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 0x40000
je 0x305a68c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.030592d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x305a68a
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xc4], 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc8], 0
jmp 0x305a6a6
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc8], 0
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xc4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 0x100
je 0x305a6ca
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x10], 0
je 0x305a6ca
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.030616e0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0305a370
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x8c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x78], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x88]
shl eax, 4
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x6c]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x30]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x3c]
mov dword [ecx + 0x44], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x40]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x48], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x50], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x48]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x4c]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x54], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x58]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x60], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x64]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc0], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0xc4]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x80], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x80]
mov dword [eax + 0x88], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x80]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x84]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x8c], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x8c]
mov dword [ecx + 0x94], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
jmp 0x305a7f8
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x1c]
jae 0x305a815
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + eax + 4]
mov dword [ebp - 0x14], edx
jmp 0x305a7ef
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x8c]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x90]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x98], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x9c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
and ecx, 2
je 0x305a881
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x6c], 0
ja 0x305a859
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x78], 0
jbe 0x305a881
push 0x3006508
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 4]
call eax
add esp, 0xc
mov eax, 0x80070057
jmp 0x305a901
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
and edx, 2
neg edx
sbb edx, edx
and edx, 0xc
add edx, 4
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x6c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x6c], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x98]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x9c]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x68], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x70], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x6c]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x7c], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x78]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x18