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

Disassembly:
sub esp, 0xb70
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x24]
cmp eax, 1
push esi
jne 0x3005bc92
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x3005bc51
call fcn.3005ee30
mov ecx, dword [esp + 0xb8c]
fld qword [esp + 0xb7c]
mov edx, dword [esp + 0xb88]
mov esi, dword [ebp]
push eax
mov eax, dword [esp + 0xb94]
push eax
mov eax, dword [esp + 0xb8c]
push ecx
push edx
push eax
call fcn.3002ddb0
push eax
mov ecx, ebp
call dword [esi + 0x14]
pop esi
pop ebp
add esp, 0xb70
ret 0x20
cmp eax, 2
jne 0x3005c4d0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ebx
push edi
mov edi, dword [ecx + 0x30]
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
mov dword [esp + 0x40], edi
call dword [edx + 0x24]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x3005c4ce
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x3005bcd4
call fcn.3005ee30
mov edx, dword [esp + 0x94]
mov esi, eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], SysStringLen
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0xb8], al
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
push ecx
push edx
push eax
lea ecx, [esp + 0xa4]
call fcn.300dfc60
test byte [ebx + 0x38], 4
movzx ecx, word [ebx + 0x36]
je 0x3005bd4d
mov edx, dword [esp + 0x9c]
lea eax, [edx + ecx*2]
jmp 0x3005bd56
mov eax, dword [esp + 0x9c]
add eax, ecx
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xb94]
add eax, 6
mov dword [esp + 0x9c], eax
add eax, edx
mov edx, dword [esp + 0xb90]
push ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebp]
push edx
mov ecx, ebp
call dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x34], eax
je 0x3005c4ce
cmp esi, 8
mov dword [esp + 0x2c], 0
jl 0x3005bdb6
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
test al, al
je 0x3005bdb6
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x2c]
mov dword [esp + 0x2c], eax
cmp esi, 8
mov dword [esp + 0x38], 0
jl 0x3005bde6
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x34]
test eax, eax
je 0x3005bde6
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.30060a60
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x18]
add eax, 0x4c
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push eax
push 0x28
mov dword [esp + 0x98], edx
call fcn.30079160
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push edx
add eax, 0xf0
push eax
call fcn.30077da0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
add esp, 0x14
test eax, eax
jne 0x3005be4d
call fcn.3005ee30
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x20]
cmp esi, 7
jl 0x3005be66
test byte [ebx + 0x38], 0x20
mov byte [esp + 0x13], 1
jne 0x3005be6b
mov byte [esp + 0x13], 0
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.300783d0
fld qword [esp + 0xb8c]
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
je 0x3005bf12
call fcn.3002ddb0
mov ecx, eax
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x3005bec6
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x58], eax
jmp 0x3005bed0
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xb8c]
mov eax, ecx
cdq
mov esi, 0x14
idiv esi
cmp edx, 0xa
jl 0x3005bf06
add ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
shl edx, 2
mov dword [esp + 0x5c], edx
jmp 0x3005bf26
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x5c], eax
jmp 0x3005bf26
call fcn.3002ddb0
mov ecx, dword [esp + 0xb8c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
cmp byte [ebx + 0x7e], 0x4b
mov esi, 0x400
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x44800000
jne 0x3005bf4e
mov esi, 0x5000
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], 0x46a00000
mov eax, dword [ebp + 4]
test eax, eax
je 0x3005bfa5
mov eax, dword [eax + 0x38]
test eax, eax
je 0x3005bfa5
mov ecx, eax
call fcn.300f88e0
test al, al
je 0x3005bfa5
cmp dword [esp + 0x60], 1
je 0x3005bf7b
lea edx, [esp + 0x48]
push edx
call fcn.300777d0
add esp, 4
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x3005bf89
neg eax
fld dword [0x3029673c]
mov dword [esp + 0x14], eax
fdiv dword [esp + 0x1c]
fimul dword [esp + 0x14]
fst dword [esp + 0x54]
fstp dword [esp + 0x48]
jmp 0x3005bfe4
cmp dword [esp + 0x60], 1
jne 0x3005bfb9
lea ecx, [esp + 0x48]
push ecx
call fcn.30077810
add esp, 4
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x3005bfc7
neg eax
mov ecx, eax
mov eax, 0x10000
cdq
idiv esi
mov dword [esp + 0x60], 0
imul eax, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0xb9c]
mov edi, dword [esp + 0xb98]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x44], esi
je 0x3005c0c4
mov eax, dword [ebx + 4]
push eax
call fcn.300b5780
add esp, 4
test al, al
je 0x3005c0c4
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x218]
test eax, eax
jne 0x3005c02c
call fcn.300e4110
cmp eax, 8
jl 0x3005c0c4
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 0x30]
call fcn.300d20d0
mov ecx, dword [eax + 0x108]
test ecx, ecx
jne 0x3005c0c4
mov eax, dword [esp + 0x24]
push eax
call fcn.300b5e70
mov esi, eax
mov eax, dword [ebp + 4]
lea ecx, [eax + 0x2ec]
mov dword [esp + 0x24], edi
mov eax, dword [ecx]
add esp, 4
test eax, eax
mov dword [esp + 0x44], esi
je 0x3005c081
push edi
lea edx, [esp + 0x2c]
push edx
call fcn.300ad450
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x23]
cmp al, 0xff
je 0x3005c0c4
movzx ecx, byte [esp + 0x20]
movzx eax, al
inc eax
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
shr edx, 8
movzx edx, dl
imul edx, eax
sar edx, 8
mov byte [esp + 0x21], dl
mov ecx, dword [esp + 0x20]
shr ecx, 0x10
movzx ecx, cl
imul ecx, eax
sar ecx, 8
mov byte [esp + 0x22], cl
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x3005c0d2
neg eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x52c]
mov ebx, dword [edx + 0x38]
mov ecx, dword [esp + 0xb94]
xor eax, eax
test esi, esi
mov dword [esp + 0x14], ebx
je 0x3005c290
test ecx, ecx
fld qword [esp + 0xb84]
fstp dword [esp + 0x3c]
mov dword [esp + 0x28], eax
fild dword [esp + 0xb8c]
fstp dword [esp + 0x40]
jle 0x3005c4c1
mov edi, dword [esp + 0xb90]
mov ebx, dword [esp + 0xb9c]
lea ebx, [ebx]
mov ecx, dword [esp + 0x34]
mov si, word [ecx + eax*2]
cmp si, 0xffff
je 0x3005c274
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x50]
xor edx, edx
mov dx, word [edi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xbb0]
push esi
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.300b7670
mov ecx, dword [esp + 0x64]
movzx eax, si
lea eax, [ecx + eax*2]
xor edx, edx
mov dh, byte [eax + 1]
movzx eax, byte [eax]
or edx, eax
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [esp + 0x14]
je 0x3005c1d8
movzx eax, word [edi]
movzx edx, word [edi + 6]
lea ecx, [esp + 0x18]
shl eax, 0x10
push ecx
mov ecx, dword [esp + 0x30]
or edx, eax
push edx
mov dword [esp + 0x20], 0
call fcn.3007b560
test eax, eax
je 0x3005c1d8
movsx ecx, word [esp + 0x18]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x3005c1e6
neg eax
test ebx, ebx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [esp + 0x14]
fidiv dword [esp + 0x30]
fstp dword [esp + 0x14]
je 0x3005c260
mov ecx, dword [ebx + 4]
call fcn.300d8aa0
mov ecx, eax
call fcn.300b6640
cmp eax, 1
jne 0x3005c260
cmp word [edi], 0x20
je 0x3005c260
lea eax, [ebx + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], ecx
fld dword [esp + 0x70]
fdiv dword [esp + 0x68]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x7c], edx
fmul dword [esp + 0x14]
fld dword [esp + 0x78]
fmul dword [0x30297a64]
faddp st(1)
fstp dword [esp + 0x14]
fild dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fadd dword [esp + 0x14]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0xb94]
inc eax
add edi, 6
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x3005c130
jmp 0x3005c4c1
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x3005c4c1
mov ecx, dword [esp + 0xb90]
mov dword [esp + 0x1c], ecx
jmp 0x3005c2b0
mov edx, dword [esp + 0x34]
mov di, word [edx + eax*2]
cmp di, 0xffff
je 0x3005c4a2
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x68]
push eax
add ecx, 0xf0
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.30077fc0
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
je 0x3005c32a
cmp ebx, 1
jle 0x3005c32a
mov esi, dword [esp + 0x78]
mov eax, esi
cdq
idiv ebx
mov ecx, ebx
sar ecx, 1
cmp edx, ecx
jl 0x3005c303
lea eax, [ecx + esi]
cdq
idiv ebx
mov esi, dword [esp + 0x7c]
imul eax, ebx
mov dword [esp + 0x78], eax
mov eax, esi
cdq
idiv dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
cmp edx, ecx
jl 0x3005c323
lea eax, [ecx + esi]
cdq
idiv ebx
imul eax, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
test byte [eax + 0x38], 8
mov ecx, eax
mov edx, dword [ecx + 0x70]
movzx esi, di
je 0x3005c35a
lea eax, [edx + esi*4]
movzx edx, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 2]
movzx eax, byte [eax]
shl ecx, 8
or ecx, edx
shl ecx, 8
or eax, ecx
jmp 0x3005c366
lea eax, [edx + esi*2]
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x68]
push edx
mov edx, dword [ecx + 0x68]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0xcc]
call fcn.3005a9f0
mov eax, dword [esp + 0x134]
mov dword [esp + 0xb7c], edi
mov dword [esp + 0xb78], 1
mov dword [eax], 0
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0xb98]
mov dword [ecx], 0
mov edx, dword [esp + 0x138]
add edi, 0x50
push edi
push eax
mov ecx, ebp
mov word [edx + 4], 0
call fcn.3005bb00
mov ecx, dword [esp + 0x134]
push 0
lea edx, [esp + 0x88]
mov dword [ecx + 4], eax
push edx
push 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x13c], 1
call fcn.300d2700
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov ch, byte [eax + esi*2 + 1]
mov cl, byte [eax + esi*2]
mov esi, ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x3005c446
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
movzx edx, word [eax + 6]
movzx eax, word [eax]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x30], 0
call fcn.3007b560
test eax, eax
je 0x3005c446
movsx ecx, word [esp + 0x28]
add esi, ecx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x3005c454
neg eax
imul eax, esi
cdq
idiv dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x13]
add eax, edx
test cl, cl
je 0x3005c48e
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x58]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x58], edx
jmp 0x3005c492
add dword [esp + 0x58], eax
lea ecx, [esp + 0xbc]
call fcn.300e03d0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb94]
inc eax
add edx, 6
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x3005c2b0
mov eax, dword [esp + 0x34]
push eax
call fcn.30208320
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xb70
ret 0x20