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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x56c], 0
je 0x304b1c7
mov eax, 1
jmp 0x304bb61
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.03040c10
test eax, eax
jne 0x304b1e1
xor eax, eax
jmp 0x304bb61
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x4794], 0
je 0x304b23e
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x570], 0
je 0x304b20f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x477c], 5
jne 0x304b20f
jmp 0x304b375
mov eax, dword [ebp + 0xc]
push eax
call fcn.0301a480
test eax, eax
je 0x304b23e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x570]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x584]
mov dword [ebp - 0x34], ecx
jmp 0x304b375
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x477c], 0
jne 0x304b251
xor eax, eax
jmp 0x304bb61
push 0
call fcn.0304f520
push 0
push 0
push 3
push 0
xor eax, eax
cmp dword [0x30f622c], 2
sete al
lea eax, [eax*4 + 3]
push eax
push 0x80000000
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x124]
push edx
call dword [0x30fa624]
mov dword [ebp - 0x40], eax
push 1
call fcn.0304f520
cmp dword [ebp - 0x40], 0xffffffff
jne 0x304b2a0
xor eax, eax
jmp 0x304bb61
mov eax, dword [ebp - 0x40]
push eax
call fcn.03044c10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x304b2bc
jmp 0x304bb10
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ebp - 0x44], ax
movzx ecx, word [ebp - 0x44]
cmp ecx, 0x5a4d
jne 0x304b2dc
jmp 0x304b2fc
movzx edx, word [ebp - 0x44]
cmp edx, 0x4944
jne 0x304b2f2
jmp 0x304b440
jmp 0x304bb10
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
jne 0x304b343
mov eax, dword [ebp - 0x20]
add eax, 0x18
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x78]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 0x34], ecx
jmp 0x304b375
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
jne 0x304b375
mov ecx, dword [ebp - 0x20]
add ecx, 0x18
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x88]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x8c]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x304b385
jmp 0x304bb10
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x1c]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 0x200
jg 0x304b3be
cmp dword [ebp - 0x70], 0x200
je 0x304b3f4
cmp dword [ebp - 0x70], 0x184
je 0x304b3d2
cmp dword [ebp - 0x70], 0x1c0
je 0x304b416
cmp dword [ebp - 0x70], 0x1f2
je 0x304b421
jmp 0x304b42c
cmp dword [ebp - 0x70], 0x284
je 0x304b3e3
cmp dword [ebp - 0x70], 0x8664
je 0x304b405
jmp 0x304b42c
mov eax, dword [ebp - 0x34]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 0x3c], eax
jmp 0x304b436
mov eax, dword [ebp - 0x34]
xor edx, edx
mov ecx, 0x28
div ecx
mov dword [ebp - 0x3c], eax
jmp 0x304b436
mov eax, dword [ebp - 0x34]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [ebp - 0x3c], eax
jmp 0x304b436
mov eax, dword [ebp - 0x34]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [ebp - 0x3c], eax
jmp 0x304b436
mov edx, dword [ebp - 0x34]
shr edx, 3
mov dword [ebp - 0x3c], edx
jmp 0x304b436
mov eax, dword [ebp - 0x34]
shr eax, 3
mov dword [ebp - 0x3c], eax
jmp 0x304b436
jmp 0x304bb10
jmp 0x304b4c5
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
lea eax, [eax + edx + 0x30]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], 0
jmp 0x304b492
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
add eax, 0x1c
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x30]
jae 0x304b4c5
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xc], 5
jne 0x304b4c3
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x10]
xor edx, edx
mov ecx, 0xc
div ecx
mov dword [ebp - 0x3c], eax
jmp 0x304b4c5
jmp 0x304b480
cmp dword [ebp - 0x3c], 0
jne 0x304b4d5
jmp 0x304bb10
mov edx, dword [ebp - 0x3c]
imul edx, edx, 0x14
mov dword [ebp - 0x2c], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x56c], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x56c], 0
je 0x304bb10
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x56c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 0x1c]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x200
jg 0x304b55e
cmp dword [ebp - 0x74], 0x200
je 0x304b7ea
cmp dword [ebp - 0x74], 0x184
je 0x304b57d
cmp dword [ebp - 0x74], 0x1c0
je 0x304b91a
cmp dword [ebp - 0x74], 0x1f2
je 0x304ba1c
jmp 0x304baea
cmp dword [ebp - 0x74], 0x284
je 0x304b6fb
cmp dword [ebp - 0x74], 0x8664
je 0x304b882
jmp 0x304baea
movzx ecx, word [ebp - 0x44]
cmp ecx, 0x4944
jne 0x304b625
mov edx, dword [ebp - 4]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x14], 0
jmp 0x304b5a5
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x3c]
jae 0x304b620
mov edx, dword [ebp - 0x14]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov edx, dword [esi + edx]
mov dword [ecx + eax], edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov eax, dword [esi + eax + 4]
mov dword [edx + ecx + 4], eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov ecx, dword [esi + ecx + 8]
mov dword [eax + edx + 8], ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov dword [eax + edx + 0xc], 0
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0x10], 0
jmp 0x304b59c
jmp 0x304b6f6
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x14], 0
jmp 0x304b63d
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jae 0x304b6f6
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + eax]
sub eax, edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + eax + 4]
sub eax, edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 4], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + eax + 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 8], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + eax + 8]
sub eax, edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + eax + 0xc]
sub eax, edx
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0x10], eax
jmp 0x304b634
jmp 0x304baea
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x14], 0
jmp 0x304b713
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jae 0x304b7e5
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ecx + eax]
sub esi, dword [edx + 8]
mov eax, dword [ecx + eax + 4]
sbb eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx], esi
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ecx + eax + 8]
sub esi, dword [edx + 8]
mov eax, dword [ecx + eax + 0xc]
sbb eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 4], esi
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ecx + eax + 0x20]
sub esi, dword [edx + 8]
mov eax, dword [ecx + eax + 0x24]
sbb eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 8], esi
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ecx + eax + 0x10]
sub esi, dword [edx + 8]
mov eax, dword [ecx + eax + 0x14]
sbb eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0xc], esi
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 0xc]
mov esi, dword [ecx + eax + 0x18]
sub esi, dword [edx + 8]
mov eax, dword [ecx + eax + 0x1c]
sbb eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0x10], esi
jmp 0x304b70a
jmp 0x304baea
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x14], 0
jmp 0x304b802
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jae 0x304b87d
mov eax, dword [ebp - 0x14]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x60]
mov eax, dword [esi + eax]
mov dword [edx + ecx], eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x60]
mov ecx, dword [esi + ecx + 4]
mov dword [eax + edx + 4], ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x60]
mov edx, dword [esi + edx + 8]
mov dword [ecx + eax + 8], edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x50]
mov dword [ecx + eax + 0xc], 0
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov dword [eax + edx + 0x10], 0
jmp 0x304b7f9
jmp 0x304baea
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x14], 0
jmp 0x304b89a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x3c]
jae 0x304b915
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x64]
mov ecx, dword [esi + ecx]
mov dword [eax + edx], ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x64]
mov edx, dword [esi + edx + 4]
mov dword [ecx + eax + 4], edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x64]
mov eax, dword [esi + eax + 8]
mov dword [edx + ecx + 8], eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0xc], 0
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x50]
mov dword [ecx + eax + 0x10], 0
jmp 0x304b891
jmp 0x304baea
mov edx, dword [ebp - 4]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x14], 0
jmp 0x304b932
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x3c]
jae 0x304ba17
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx*8]
sub ecx, eax
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov dword [eax + edx], ecx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax*8 + 4]
shr eax, 8
and eax, 0x3fffff
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x68]
mov ecx, dword [esi + ecx*8 + 4]
shr ecx, 0x1e
and ecx, 1
add ecx, 1
shl eax, cl
mov ecx, dword [ebp - 0x50]
add eax, dword [ecx + edx]
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov ecx, dword [ebp - 0x50]
mov dword [ecx + edx + 4], eax
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax*8 + 4]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x68]
mov ecx, dword [esi + ecx*8 + 4]
shr ecx, 0x1e
and ecx, 1
add ecx, 1
shl eax, cl
mov ecx, dword [ebp - 0x50]
add eax, dword [ecx + edx]
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov ecx, dword [ebp - 0x50]
mov dword [ecx + edx + 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + edx*8 + 4]
shr ecx, 0x1f
and ecx, 1
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + ecx*8 + 4]
shr eax, 0x1e
and eax, 1
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0x10], eax
jmp 0x304b929
jmp 0x304baea
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x14], 0
jmp 0x304ba34
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x3c]
jae 0x304baea
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax + edx*8]
sub edx, ecx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x50]
mov dword [ecx + eax], edx
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + eax*8 + 4]
shr eax, 8
and eax, 0x3fffff
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + edx]
lea eax, [edx + eax*4]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 4], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx + ecx*8 + 4]
and ecx, 0xff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + eax]
lea ecx, [eax + ecx*4]
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x50]
mov dword [eax + edx + 8], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + ecx*8 + 4]
shr eax, 0x1e
and eax, 3
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x50]
mov dword [edx + ecx + 0xc], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x50]
mov dword [ecx + eax + 0x10], 0
jmp 0x304ba2b
lea edx, [ebp - 0x14]
push edx
push 2
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x56c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x578], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x477c], 5
je 0x304bb38
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x570]
push ecx
call fcn.0302cd20
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x570], 0
cmp dword [ebp - 0x18], 0
je 0x304bb48
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x40], 0
je 0x304bb58
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x3c], 0
setne al
pop esi
mov esp, ebp
pop ebp
ret 8