Function at 0x303c740
Capabilities:
Get file size
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30e6db0
push 0x30789ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffc6c
mov eax, dword [0x30ee89c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x22c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 1
je 0x303c7b6
cmp dword [ebp - 0x350], 2
je 0x303c7f6
cmp dword [ebp - 0x350], 3
je 0x303c855
jmp 0x303c8b4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xd50]
mov dword [ebp - 0x1d4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xa8], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xcac], 5
jmp 0x303c8bb
mov dword [ebp - 0x1d4], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x448]
push edx
call fcn.0303e1c0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x44c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44c]
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xcac], 2
jmp 0x303c8bb
mov dword [ebp - 0x1d4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x868]
push ecx
call fcn.0303e1c0
mov edx, dword [ebp + 8]
mov dword [edx + 0x86c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x86c]
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x868]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xcac], 3
jmp 0x303c8bb
xor eax, eax
jmp 0x303d818
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xfb0], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
push 2
lea edx, [ebp - 0x234]
push edx
push 0
push 0
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303c934
push 0
push 6
call fcn.0301d300
mov dword [ebp - 0x354], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x354]
jmp 0x303d818
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xca4], ecx
movzx edx, word [ebp - 0x234]
cmp edx, 0x4944
jne 0x303c954
jmp 0x303d0c3
movzx eax, word [ebp - 0x234]
cmp eax, 0x5a4d
jne 0x303ca56
push 0x40
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303c9ba
push 0
push 6
call fcn.0301d300
mov dword [ebp - 0x358], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x358]
jmp 0x303d818
push 0xf8
lea edx, [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x2c]
cdq
push edx
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303ca16
push 0
push 6
call fcn.0301d300
mov dword [ebp - 0x35c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x35c]
jmp 0x303d818
cmp dword [ebp - 0x1a8], 0x4550
je 0x303ca51
lea eax, [ebp - 0x190]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x1d0], ecx
mov edx, dword [ebp - 0x1d0]
movzx eax, word [edx + 0x10]
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x1d8], edx
jmp 0x303cb94
movzx eax, word [ebp - 0x234]
cmp eax, 0x14c
jne 0x303cac8
push 0xf4
lea ecx, [ebp - 0x1a4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303cab9
mov dword [ebp - 0x360], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x360]
jmp 0x303d818
mov dword [ebp - 0x1a8], 0x524f4d20
jmp 0x303cb94
push 0x4c
lea edx, [ebp - 0x228]
push edx
push 0
push 0
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303cb1f
push 0
push 6
call fcn.0301d300
mov dword [ebp - 0x364], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x364]
jmp 0x303d818
movzx eax, word [ebp - 0x228]
cmp eax, 0x14c
je 0x303cb4b
movzx ecx, word [ebp - 0x228]
cmp ecx, 0x184
je 0x303cb4b
movzx edx, word [ebp - 0x228]
cmp edx, 0x284
jne 0x303cb78
lea eax, [ebp - 0x214]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x1d0], ecx
mov edx, dword [ebp - 0x1d0]
movzx eax, word [edx + 0x10]
add eax, 0x14
mov dword [ebp - 0x1d8], eax
jmp 0x303cb94
mov dword [ebp - 0x368], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x368]
jmp 0x303d818
cmp dword [ebp - 0xac], 0
je 0x303cc2f
mov ecx, dword [ebp - 0xac]
movzx edx, word [ecx]
cmp edx, 0x107
jne 0x303cc01
mov eax, dword [ebp + 8]
mov dword [eax + 0xd24], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xac]
mov ax, word [edx]
mov word [ecx + 0x450], ax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 0x14]
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 4]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], 0
jmp 0x303cc2a
mov eax, dword [ebp + 8]
mov dword [eax + 0x11e8], 0xb
mov dword [ebp - 0x36c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x36c]
jmp 0x303d818
jmp 0x303cdc6
movzx ecx, word [ebp - 0x190]
push ecx
call fcn.0303e120
test eax, eax
je 0x303cd32
push 0x108
lea edx, [ebp - 0x348]
push edx
mov eax, dword [ebp - 0x2c]
cdq
push edx
push eax
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303cca0
push 0
push 6
call fcn.0301d300
mov dword [ebp - 0x370], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x370]
jmp 0x303d818
lea eax, [ebp - 0x344]
mov dword [ebp - 0x1d0], eax
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x108
mov dword [ebp - 0x1d8], edx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x330]
mov word [eax + 0x450], cx
mov edx, dword [ebp + 8]
mov dword [edx + 0xd20], 1
cmp dword [ebp + 0xc], 2
je 0x303ccf1
cmp dword [ebp + 0xc], 1
jne 0x303cd21
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x318]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x314]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x310]
mov dword [eax + 0xd1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2f0]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2f8]
mov dword [ecx + 0x20], edx
jmp 0x303cdc6
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1d0], eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp + 8]
mov ax, word [ebp - 0x190]
mov word [edx + 0x450], ax
cmp dword [ebp - 0x1a8], 0x524f4d20
jne 0x303cd73
mov dword [ebp - 0x1d8], 0xf4
jmp 0x303cd82
mov ecx, dword [ebp - 0x2c]
add ecx, 0xf8
mov dword [ebp - 0x1d8], ecx
cmp dword [ebp + 0xc], 2
je 0x303cd8e
cmp dword [ebp + 0xc], 1
jne 0x303cdba
mov edx, dword [ebp - 0x174]
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x170]
mov dword [edx + 0xd1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x150]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x158]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x64
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xfbc]
push edx
call fcn.0303df90
mov eax, dword [ebp - 0x1d0]
movzx ecx, word [eax + 2]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x28
push edx
call fcn.03029170
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x303ce0c
jmp 0x303d2c9
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x1d8]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0x1d4]
push eax
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303ce52
jmp 0x303d2c9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x23c]
mov dword [ecx + 0xcdc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xd10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
mov dword [edx + 0xcd0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xd04], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1d0]
mov dx, word [ecx]
mov word [eax + 0x30], dx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 4]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x1d0]
movzx ecx, word [eax + 0x12]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x65
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xfbc]
push eax
call fcn.0303df90
mov dword [ebp - 0x9c], 0
jmp 0x303cefa
mov ecx, dword [ebp - 0x9c]
add ecx, 1
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x23c]
add edx, 0x28
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x1c]
jae 0x303d0be
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xd24], 0
je 0x303cfdd
mov edx, dword [ebp - 0x1d0]
movzx eax, word [edx + 0x12]
and eax, 0x200
jne 0x303cfdd
mov dword [ebp - 0x374], 0x3003554
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x378], ecx
mov edx, dword [ebp - 0x378]
mov al, byte [edx]
mov byte [ebp - 0x379], al
mov ecx, dword [ebp - 0x374]
cmp al, byte [ecx]
jne 0x303cfa2
cmp byte [ebp - 0x379], 0
je 0x303cf96
mov edx, dword [ebp - 0x378]
mov al, byte [edx + 1]
mov byte [ebp - 0x37a], al
mov ecx, dword [ebp - 0x374]
cmp al, byte [ecx + 1]
jne 0x303cfa2
add dword [ebp - 0x378], 2
add dword [ebp - 0x374], 2
cmp byte [ebp - 0x37a], 0
jne 0x303cf44
mov dword [ebp - 0x380], 0
jmp 0x303cfad
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x380], edx
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x384], eax
cmp dword [ebp - 0x384], 0
jne 0x303cfdd
mov dword [ebp - 0x22c], 1
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
jmp 0x303d0be
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303de00
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x303d06c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xf60], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax + 4]
mov dword [edx + 0xfc8], ecx
mov edx, dword [ebp - 0x238]
mov eax, dword [edx]
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0xfc0], eax
mov dword [edx + 0xfc4], ecx
push 0x28
mov eax, dword [ebp + 8]
add eax, 0xf88
push eax
mov ecx, dword [ebp - 0x34c]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303e140
mov eax, dword [ebp - 0x238]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303de00
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x303d0b9
mov eax, dword [ebp - 0x34c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x238]
mov eax, dword [ecx + 0x34]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [ebp - 0x22c], eax
jmp 0x303cedc
jmp 0x303d2c9
push 0x30
lea edx, [ebp - 0x98]
push edx
push 0
push 0
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303d115
mov dword [ebp - 0x388], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x388]
jmp 0x303d818
movzx eax, word [ebp - 0x94]
cmp eax, 0x14c
je 0x303d16b
movzx ecx, word [ebp - 0x94]
cmp ecx, 0x184
je 0x303d16b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x86c], 0
mov dword [ebp - 0x38c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38c]
jmp 0x303d818
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x74]
mov dword [edx + 0xd1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x8c]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x94]
mov word [eax + 0x30], cx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x90]
mov dword [edx + 0x28], eax
movzx ecx, word [ebp - 0x92]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x390]
mov edx, dword [ebp - 0x390]
mov eax, dword [ecx + 0x18]
or eax, dword [edx + 0x1c]
jne 0x303d1d8
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 0
jne 0x303d1ed
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x84]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x28
push edx
call fcn.03029170
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x303d213
jmp 0x303d2c9
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
push 0
push 0x30
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303d250
jmp 0x303d2c9
mov edx, dword [ebp + 8]
cmp dword [edx + 0xd44], 0
jne 0x303d26b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xcdc]
push ecx
call fcn.030291c0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x23c]
mov dword [edx + 0xcdc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xd10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x23c]
mov dword [eax + 0xcd4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xd08], eax
cmp dword [ebp - 0x78], 0
je 0x303d2c9
mov eax, dword [ebp - 0x78]
xor edx, edx
mov ecx, 0x1c
div ecx
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x80]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x7c]
lea ecx, [edx + eax + 0x30]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 1
cmp dword [ebp + 0xc], 2
jne 0x303d2f1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xce0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x22c]
mov dword [ecx + 0xce4], edx
cmp dword [ebp - 0x22c], 0
je 0x303d7fc
push 0x1c
lea eax, [ebp - 0x1cc]
push eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x1d4]
push edx
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303d353
mov dword [ebp - 0x394], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x394]
jmp 0x303d818
cmp dword [ebp - 0x1bc], 0
jne 0x303d361
jmp case.0x303d690.1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xfbc]
push eax
call fcn.0303df90
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x398], ecx
cmp dword [ebp - 0x398], 1
je 0x303d5da
cmp dword [ebp - 0x398], 2
je 0x303d3b1
cmp dword [ebp - 0x398], 4
je 0x303d4f4
jmp 0x303d650
cmp dword [ebp - 0x1d4], 0
je 0x303d46e
cmp dword [ebp - 0x1b8], 0
jne 0x303d3e3
mov dword [ebp - 0x39c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x39c]
jmp 0x303d818
mov edx, dword [ebp - 0x1bc]
push edx
call fcn.03029170
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x303d403
jmp 0x303d650
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x1b0]
push ecx
mov edx, dword [ebp - 0x1b8]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0x1d4]
push eax
call fcn.0303e140
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x303d46c
mov ecx, dword [ebp - 0x1b0]
push ecx
call fcn.030291c0
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3a0]
jmp 0x303d818
jmp 0x303d4a0
mov edx, dword [ebp - 0x1b4]
cmp edx, dword [ebp - 0xb0]
jb 0x303d481
jmp 0x303d650
mov eax, dword [ebp - 0xa8]
add eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd2c], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1b0]
mov dword [edx + 0xcb0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1bc]
mov dword [ecx + 0xd14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xf68], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0303de70
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xfbc]
push eax
call fcn.0303df90
jmp 0x303d650
mov ecx, dword [ebp - 0x1b4]
cmp ecx, dword [ebp - 0xb0]
jae 0x303d5bc
mov edx, dword [ebp - 0xa8]
add edx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1ac]
cmp dword [eax], 1
je 0x303d528
jmp 0x303d650
cmp dword [ebp + 0xc], 3
jne 0x303d55e
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x23c]
test edx, edx
jne 0x303d559
push 0x105
mov eax, dword [ebp + 8]
add eax, 0x23c
push eax
mov ecx, dword [ebp - 0x1ac]
add ecx, 0xc
push ecx
call fcn.03036c00
jmp 0x303d650
mov edx, dword [ebp - 0x1d0]
movzx eax, word [edx + 0x12]
and eax, 0x200
je 0x303d59e
push 0x105
mov ecx, dword [ebp + 8]
add ecx, 0x65c
push ecx
mov edx, dword [ebp - 0x1ac]
add edx, 0xc
push edx
call fcn.03036c00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c8]
mov dword [eax + 0x870], ecx
jmp 0x303d5bc
push 0x105
mov edx, dword [ebp + 8]
add edx, 0x23c
push edx
mov eax, dword [ebp - 0x1ac]
add eax, 0xc
push eax
call fcn.03036c00
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xfbc]
push ecx
call fcn.0303df90
jmp 0x303d650
mov edx, dword [ebp - 0x1b4]
cmp edx, dword [ebp - 0xb0]
jae 0x303d643
mov eax, dword [ebp - 0xa8]
add eax, dword [ebp - 0x1b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xcb4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1bc]
mov dword [edx + 0xd18], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd28], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0xf64], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xfbc]
push ecx
call fcn.0303df90
jmp 0x303d650
mov edx, dword [ebp + 8]
mov dword [edx + 0xfb0], 1
mov eax, dword [ebp - 0x1b4]
cmp eax, dword [ebp - 0xb0]
jae case.0x303d690.1
mov ecx, dword [ebp - 0x1c0]
mov dword [ebp - 0x3a4], ecx
mov edx, dword [ebp - 0x3a4]
sub edx, 3
mov dword [ebp - 0x3a4], edx
cmp dword [ebp - 0x3a4], 5
ja case.0x303d690.1
mov eax, dword [ebp - 0x3a4]
jmp dword [eax*4 + 0x303d838]
mov ecx, dword [ebp - 0xa8]
add ecx, dword [ebp - 0x1b4]
mov edx, dword [ebp + 8]
mov dword [edx + 0xcbc], ecx
mov eax, dword [ebp - 0x1bc]
shr eax, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xce8], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xd30], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xf70], ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xfbc]
push edx
call fcn.0303df90
jmp case.0x303d690.1
mov eax, dword [ebp - 0xa8]
add eax, dword [ebp - 0x1b4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xcc8], eax
mov edx, dword [ebp - 0x1bc]
shr edx, 3
mov eax, dword [ebp + 8]
mov dword [eax + 0xcfc], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd3c], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0xf74], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xfbc]
push ecx
call fcn.0303df90
jmp case.0x303d690.1
mov edx, dword [ebp - 0xa8]
add edx, dword [ebp - 0x1b4]
mov eax, dword [ebp + 8]
mov dword [eax + 0xccc], edx
mov ecx, dword [ebp - 0x1bc]
shr ecx, 3
mov edx, dword [ebp + 8]
mov dword [edx + 0xd00], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xd40], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xf78], edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xfbc]
push eax
call fcn.0303df90
jmp case.0x303d690.1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xf7c], edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xfbc]
push eax
call fcn.0303df90
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x22c]
sub edx, 1
mov dword [ebp - 0x22c], edx
jmp 0x303d2f1
mov dword [ebp - 4], 0xffffffff
jmp 0x303d815
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.03050b89
mov esp, ebp
pop ebp
ret 8