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

Disassembly:
sub esp, 0x598
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov al, byte [ebp + 4]
test al, al
jne 0x4cc905
mov eax, dword [esp + 0x5ac]
lea ecx, [esp + 0x110]
push ecx
mov esi, dword [eax + 0x134]
mov ecx, esi
mov dword [esp + 0x104], esi
call fcn.004a1c10
mov edx, dword [eax]
add esi, 0x124
mov dword [esp + 0xc0], edx
lea ebx, [ebp + 0x278]
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], 0x95
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x4c], ebx
mov edx, dword [eax + 8]
mov eax, dword [esi]
mov dword [esp + 0xc8], edx
mov dword [esp + 0x9c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0xa0], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0xa4], edx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x74], 0
test eax, eax
jle 0x4cc7b2
lea eax, [ebx + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
xor eax, eax
lea edi, [esp + 0x258]
mov ax, word [ecx]
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*8]
mov ecx, 0xd4
shl edx, 1
sub edx, eax
shl edx, 4
lea esi, [edx + ebp + 0x1728]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x294]
fstp dword [esp + 0xa8]
fld dword [esp + 0x298]
fstp dword [esp + 0xac]
fld dword [esp + 0x29c]
fstp dword [esp + 0xb0]
fld dword [esp + 0xa8]
fsub dword [esp + 0xc0]
mov eax, dword [esp + 0xa8]
mov edx, dword [esp + 0xb0]
mov ecx, 0xc
lea esi, [esp + 0x304]
fstp dword [esp + 0x50]
fld dword [esp + 0xac]
fsub dword [esp + 0xc4]
lea edi, [esp + 0x228]
mov dword [esp + 0x30], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0x100]
fstp dword [esp + 0x54]
fld dword [esp + 0xb0]
fsub dword [esp + 0xc8]
lea eax, [esp + 0x228]
mov dword [esp + 0x34], ecx
push eax
mov ecx, esi
fstp dword [esp + 0x5c]
mov dword [esp + 0x3c], edx
call fcn.004a2b50
test al, al
je 0x4cc793
mov al, byte [ebp + 5]
test al, al
je 0x4cbb34
lea ecx, [esp + 0x2a4]
push 0x8000ff00
push ecx
mov ecx, dword [0x5e0628]
call fcn.004c58b0
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
mov edx, dword [ebp]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
mov eax, dword [edx + 0x764]
faddp st(1)
mov eax, dword [eax + 0x7c]
fsqrt
fstp dword [esp + 0x14]
fld dword [esi + 0x33c]
fmul dword [esp + 0x14]
xor esi, esi
cmp eax, esi
fmul dword [0x5944c4]
fld dword [ebx + 8]
fmul dword [ebx - 0x44]
fmul dword [0x5944c0]
fdivp st(1)
fstp dword [esp + 0x10]
je 0x4cbbab
lea ecx, [esp + 0x2c]
push 0xff
push ecx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x38]
push edx
push ecx
mov ecx, dword [eax + 0xb8c]
call fcn.004e1360
jmp 0x4cbbbb
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x2c], 0xff000000
fld dword [esp + 0x10]
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 0x41
je 0x4cc793
fld dword [esp + 0x10]
fcomp dword [ebp + 8]
fnstsw ax
test ah, 0x41
jne 0x4cc5ea
fld dword [esp + 0x14]
fcom qword [0x58dc98]
fnstsw ax
test ah, 1
je 0x4cbc43
fcom qword [0x58dc90]
fnstsw ax
test ah, 0x41
jne 0x4cbc43
mov dword [esp + 0xfc], 0
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0xf8], 0
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xf4], 0
mov edx, dword [esp + 0xf4]
fstp st(0)
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
jmp 0x4cbc83
fld dword [esp + 0x58]
fdiv st(1)
push ecx
fstp dword [esp]
fld dword [esp + 0x58]
fdiv st(1)
push ecx
fstp dword [esp]
fld dword [esp + 0x58]
fdiv st(1)
push ecx
lea ecx, [esp + 0x228]
fstp dword [esp]
fstp st(0)
call fcn.0040cf40
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x64], edx
fld dword [esp + 0x10]
fcomp dword [ebp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x4cbcc3
fld dword [ebp + 0x10]
fsub dword [esp + 0x10]
fld dword [ebp + 0x10]
fsub dword [ebp + 0xc]
fdivp st(1)
fmul dword [0x594420]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x1c]
and eax, 0xff
shl eax, 0x18
and ecx, 0xffffff
or eax, ecx
mov dword [esp + 0x1c], eax
mov edx, dword [ebp + 0x32c2c]
add edx, 4
cmp edx, 0x400
jg 0x4cbce4
mov eax, dword [ebp + 0x32c30]
add eax, 2
cmp eax, 0x400
jle 0x4cbd3a
mov ecx, dword [ebp]
push 0x80
call fcn.0049c8b0
mov ecx, dword [ebx - 0x14]
push esi
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edx, dword [ebp + 0x32c30]
lea eax, [ebp + 0x32c34]
push 0x1c
push eax
mov eax, dword [ebp + 0x32c2c]
lea ecx, [ebp + 0x39c34]
push 0x65
push ecx
mov ecx, dword [ebp]
push edx
push eax
push esi
push 4
call fcn.0049ccf0
mov ecx, dword [ebx - 0x14]
push esi
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [ebp + 0x32c2c], esi
mov dword [ebp + 0x32c30], esi
fld dword [esp + 0x284]
fld dword [esp + 0x288]
fld dword [esp + 0x28c]
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fst dword [esp + 0x10]
fcomp qword [0x58dc98]
fnstsw ax
test ah, 1
je 0x4cbdd6
fld dword [esp + 0x10]
fcomp qword [0x58dc90]
fnstsw ax
test ah, 0x41
jne 0x4cbdd6
fstp st(0)
mov dword [esp + 0xd4], 0
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xd0], 0
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0xcc], 0
mov eax, dword [esp + 0xcc]
fstp st(0)
fstp st(0)
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
jmp 0x4cbe17
fdiv dword [esp + 0x10]
push ecx
fstp dword [esp]
push ecx
fdiv dword [esp + 0x18]
fstp dword [esp]
push ecx
lea ecx, [esp + 0x1f8]
fdiv dword [esp + 0x1c]
fstp dword [esp]
call fcn.0040cf40
mov ecx, dword [eax]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x94], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x98], eax
fld dword [esp + 0x5c]
fmul dword [esp + 0x90]
fld dword [esp + 0x60]
fmul dword [esp + 0x94]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [esp + 0x98]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x264]
fld dword [esp + 0x268]
fld dword [esp + 0x26c]
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fst dword [esp + 0x10]
fcomp qword [0x58dc98]
fnstsw ax
test ah, 1
je 0x4cbecf
fld dword [esp + 0x10]
fcomp qword [0x58dc90]
fnstsw ax
test ah, 0x41
jne 0x4cbecf
fstp st(0)
mov dword [esp + 0xdc], 0
mov edx, dword [esp + 0xdc]
mov dword [esp + 0xd8], 0
mov ecx, dword [esp + 0xd8]
fstp st(0)
mov dword [esp + 0xe0], 0
mov eax, dword [esp + 0xe0]
fstp st(0)
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jmp 0x4cbf03
fdiv dword [esp + 0x10]
push ecx
fstp dword [esp]
push ecx
fdiv dword [esp + 0x18]
fstp dword [esp]
push ecx
lea ecx, [esp + 0x21c]
fdiv dword [esp + 0x1c]
fstp dword [esp]
call fcn.0040cf40
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov eax, dword [eax + 8]
fld dword [esp + 0x78]
fmul dword [esp + 0x5c]
fld dword [esp + 0x7c]
fmul dword [esp + 0x60]
mov dword [esp + 0x80], eax
faddp st(1)
fld dword [esp + 0x80]
fmul dword [esp + 0x64]
faddp st(1)
fld dword [esp + 0x18]
fpatan
fmul qword [0x594270]
call sub.MSVCRT.dll__ftol
cmp eax, esi
mov dword [esp + 0x10], eax
jge 0x4cbf4b
add eax, 0x168
mov dword [esp + 0x10], eax
cmp eax, 0x168
jle 0x4cbf5b
sub eax, 0x168
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fild dword [ebx - 0x10]
fdivr dword [0x5942d8]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov esi, dword [ebx]
mov ecx, eax
cdq
idiv esi
mov eax, ecx
mov dword [esp + 0x18], edx
cdq
fild dword [esp + 0x18]
idiv esi
fmul dword [ebx - 0xc]
fadd dword [0x58f208]
fstp dword [esp + 0x24]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul dword [ebx - 8]
fadd dword [0x58f208]
fstp dword [esp + 0x28]
fld dword [esp + 0x24]
fadd dword [ebx - 0xc]
fsub dword [str._n_5]
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
fadd dword [ebx - 8]
fsub dword [str._n_5]
fstp dword [esp + 0x18]
fld dword [esp + 0x274]
fld dword [esp + 0x278]
fld dword [esp + 0x27c]
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fst dword [esp + 0x10]
fcomp qword [0x58dc98]
fnstsw ax
test ah, 1
je 0x4cc05c
fld dword [esp + 0x10]
fcomp qword [0x58dc90]
fnstsw ax
test ah, 0x41
jne 0x4cc05c
fstp st(0)
mov dword [esp + 0xec], 0
mov edx, dword [esp + 0xec]
mov dword [esp + 0xe8], 0
mov ecx, dword [esp + 0xe8]
fstp st(0)
mov dword [esp + 0xf0], 0
mov eax, dword [esp + 0xf0]
fstp st(0)
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
jmp 0x4cc096
fdiv dword [esp + 0x10]
push ecx
fstp dword [esp]
push ecx
fdiv dword [esp + 0x18]
fstp dword [esp]
push ecx
lea ecx, [esp + 0x204]
fdiv dword [esp + 0x1c]
fstp dword [esp]
call fcn.0040cf40
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov eax, dword [eax + 8]
fld dword [ebx + 8]
fld dword [esp + 0x84]
fmul st(1)
mov dword [esp + 0x8c], eax
fstp dword [esp + 0x140]
fld dword [esp + 0x88]
fmul st(1)
fstp dword [esp + 0x144]
fmul dword [esp + 0x8c]
fld dword [ebx - 0x44]
fld dword [esp + 0x140]
fmul st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x144]
fmul st(1)
fstp dword [esp + 0x44]
fxch st(1)
fmul st(1)
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0xa4]
fmul dword [esp + 0x44]
fld dword [esp + 0xa0]
fmul dword [esp + 0x48]
fsubp st(1)
fld dword [esp + 0x48]
fmul dword [esp + 0x9c]
fld dword [esp + 0xa4]
fmul dword [esp + 0x40]
fsubp st(1)
fld dword [esp + 0xa0]
fmul dword [esp + 0x40]
fld dword [esp + 0x44]
fmul dword [esp + 0x9c]
fsubp st(1)
fld st(2)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fst dword [esp + 0x10]
fcomp qword [0x58dc98]
fnstsw ax
test ah, 1
je 0x4cc1b6
fld dword [esp + 0x10]
fcomp qword [0x58dc90]
fnstsw ax
test ah, 0x41
jne 0x4cc1b6
fstp st(0)
mov dword [esp + 0x108], 0
mov edx, dword [esp + 0x108]
mov dword [esp + 0x104], 0
mov ecx, dword [esp + 0x104]
fstp st(0)
mov dword [esp + 0x10c], 0
mov eax, dword [esp + 0x10c]
fstp st(0)
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
jmp 0x4cc1f0
fdiv dword [esp + 0x10]
push ecx
fstp dword [esp]
push ecx
fdiv dword [esp + 0x18]
fstp dword [esp]
push ecx
lea ecx, [esp + 0x210]
fdiv dword [esp + 0x1c]
fstp dword [esp]
call fcn.0040cf40
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xb8], edx
mov eax, dword [eax + 8]
fld dword [ebx + 4]
fld st(0)
fmul dword [esp + 0xb4]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x170]
mov dword [esp + 0x1cc], eax
mov eax, dword [ebp + 0x32c2c]
fld st(0)
fmul dword [esp + 0xb8]
lea esi, [esp + 0x1b4]
fstp dword [esp + 0x174]
fmul dword [esp + 0xbc]
fld dword [ebx - 0x40]
fadd dword [ebx - 0x44]
fld dword [esp + 0x170]
fmul st(1)
fstp dword [esp + 0x164]
fld dword [esp + 0x174]
fmul st(1)
fstp dword [esp + 0x168]
fxch st(1)
fmul st(1)
fxch st(1)
fstp st(0)
fld dword [esp + 0x164]
fmul dword [0x58e1f0]
fstp dword [esp + 0x68]
fld dword [esp + 0x168]
fmul dword [0x58e1f0]
fstp dword [esp + 0x6c]
fmul dword [0x58e1f0]
fld dword [esp + 0x30]
fsub dword [esp + 0x68]
fld dword [esp + 0x34]
fsub dword [esp + 0x6c]
fstp dword [esp + 0x15c]
fld dword [esp + 0x38]
fsub st(2)
fstp dword [esp + 0x160]
fadd dword [esp + 0x40]
fld dword [esp + 0x15c]
fadd dword [esp + 0x44]
fstp dword [esp + 0x150]
fld dword [esp + 0x160]
mov ecx, dword [esp + 0x150]
fadd dword [esp + 0x48]
mov dword [esp + 0x1b8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c4], ecx
lea ecx, [eax*8]
fstp dword [esp + 0x154]
mov edx, dword [esp + 0x154]
sub ecx, eax
fstp dword [esp + 0x1b4]
fld dword [esp + 0x68]
mov dword [esp + 0x1bc], edx
mov edx, dword [esp + 0x24]
lea edi, [ebp + ecx*4 + 0x32c34]
mov ecx, 7
mov dword [esp + 0x1c8], edx
rep movsd dword es:[edi], dword [esi]
fadd dword [esp + 0x30]
fld dword [esp + 0x6c]
fadd dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x198]
mov dword [esp + 0x1a4], ecx
mov ecx, dword [esp + 0x28]
fstp dword [esp + 0x138]
fld st(1)
fadd dword [esp + 0x38]
mov dword [esp + 0x1b0], ecx
mov ecx, 7
fstp dword [esp + 0x13c]
fadd dword [esp + 0x40]
fld dword [esp + 0x138]
fadd dword [esp + 0x44]
fstp dword [esp + 0x120]
fld dword [esp + 0x13c]
fadd dword [esp + 0x48]
mov edx, dword [esp + 0x120]
mov dword [esp + 0x19c], edx
mov edx, dword [esp + 0x2c]
fstp dword [esp + 0x124]
mov eax, dword [esp + 0x124]
mov dword [esp + 0x1a8], edx
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1ac], eax
mov eax, dword [ebp + 0x32c2c]
fstp dword [esp + 0x198]
lea edx, [eax*8]
sub edx, eax
lea edi, [ebp + edx*4 + 0x32c50]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x30]
fsub dword [esp + 0x68]
fld dword [esp + 0x34]
fsub dword [esp + 0x6c]
fstp dword [esp + 0x12c]
fld dword [esp + 0x38]
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x1c]
fsub st(2)
mov dword [esp + 0x1d4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1e0], eax
mov eax, dword [ebp + 0x32c2c]
fstp dword [esp + 0x130]
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x1dc], edx
mov dword [esp + 0x1d8], ecx
mov ecx, dword [esp + 0x24]
fstp dword [esp + 0x1d0]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1e4], ecx
fld dword [esp + 0x68]
lea ecx, [eax*8]
lea esi, [esp + 0x1d0]
sub ecx, eax
mov dword [esp + 0x1e8], edx
lea edi, [ebp + ecx*4 + 0x32c6c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
fadd dword [esp + 0x30]
fld dword [esp + 0x6c]
fadd dword [esp + 0x34]
fstp dword [esp + 0x114]
fxch st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x118]
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x180], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x190], eax
mov eax, dword [ebp + 0x32c2c]
mov dword [esp + 0x18c], edx
fstp dword [esp + 0x17c]
lea edx, [eax*8]
mov dword [esp + 0x188], ecx
mov ecx, dword [esp + 0x18]
sub edx, eax
mov dword [esp + 0x194], ecx
mov ecx, 7
lea edi, [ebp + edx*4 + 0x32c88]
lea esi, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x32c30]
mov cx, word [ebp + 0x32c2c]
lea eax, [eax + eax*2]
mov word [ebp + eax*2 + 0x39c34], cx
mov eax, dword [ebp + 0x32c30]
mov dx, word [ebp + 0x32c2c]
add eax, 0x9a09
inc dx
lea eax, [eax + eax*2]
mov word [ebp + eax*2], dx
mov eax, dword [ebp + 0x32c30]
mov cx, word [ebp + 0x32c2c]
lea edx, [eax + eax*2]
add cx, 2
mov word [ebp + edx*2 + 0x39c38], cx
mov eax, dword [ebp + 0x32c30]
mov cx, word [ebp + 0x32c2c]
lea edx, [eax + eax*2]
add cx, 2
mov word [ebp + edx*2 + 0x39c3a], cx
mov eax, dword [ebp + 0x32c30]
mov cx, word [ebp + 0x32c2c]
add eax, 0x9a0a
inc cx
lea edx, [eax + eax*2]
mov word [ebp + edx*2], cx
mov eax, dword [ebp + 0x32c30]
mov cx, word [ebp + 0x32c2c]
lea edx, [eax + eax*2]
add cx, 3
mov word [ebp + edx*2 + 0x39c3e], cx
mov ecx, dword [ebp + 0x32c2c]
mov eax, dword [ebp + 0x32c30]
add ecx, 4
add eax, 2
mov dword [ebp + 0x32c2c], ecx
mov dword [ebp + 0x32c30], eax
jmp 0x4cc793
mov eax, dword [ebx - 0x38]
mov dword [esp + 0x10], esi
cmp eax, esi
jle 0x4cc793
mov edx, dword [esp + 0x4c]
lea eax, [ebp + 0x2cc2c]
lea ecx, [ebp + 0x10c2c]
add edx, 0xffffffcc
mov dword [esp + 0x18], esi
lea ebx, [ebp + 0x10c0c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
mov esi, dword [ebx]
mov ecx, dword [eax]
mov dword [esp + 0xe4], ecx
mov edx, dword [ecx + 0x128]
add edx, esi
cmp edx, 0x400
jg 0x4cc657
mov eax, dword [ebx + 0x10]
mov ecx, dword [ecx + 0x12c]
lea eax, [eax + eax*2]
add ecx, eax
cmp ecx, 0xc00
jle 0x4cc6b4
mov ecx, dword [ebp]
push 0x80
call fcn.0049c8b0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
add edx, eax
push 0
mov ecx, dword [ebp + edx*4]
lea esi, [ebp + edx*4]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x10]
push 0x1c
push eax
mov eax, dword [ebx]
push 0x65
push ecx
mov ecx, dword [ebp]
push edx
push eax
push 0
push 4
call fcn.0049ccf0
mov ecx, dword [esi]
push 0
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x260]
push ecx
push eax
sub esp, 0x40
mov ecx, 0x10
lea esi, [esp + 0x2b0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x64]
mov esi, dword [ebx + 0x10]
mov edx, dword [ebx]
mov eax, edi
add eax, esi
mov esi, dword [esp + 0x130]
lea ecx, [eax + eax*2]
lea eax, [ebp + ecx*2 + 0x2cc2c]
push eax
lea eax, [edi + edx]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ebp + ecx*4 + 0x10c2c]
mov ecx, ebp
push eax
push edx
push esi
call fcn.004cb800
test al, al
je 0x4cc914
mov ecx, dword [esi + 0x128]
mov eax, dword [ebx]
add eax, ecx
add edi, 0x400
mov dword [ebx], eax
mov ecx, dword [esi + 0x12c]
mov eax, 0x55555556
mov esi, dword [ebx + 0x10]
imul ecx
mov ecx, dword [esp + 0x24]
mov eax, edx
add ecx, 4
add ebx, 4
shr eax, 0x1f
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x10]
add esi, edx
mov edx, dword [esp + 0x28]
add ecx, 0x1800
add edx, 0x7000
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0xc], esi
mov dword [esp + 0x28], edx
mov edx, dword [ecx - 0x38]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
jl 0x4cc622
mov ebx, ecx
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0xc]
inc eax
add edx, 2
cmp eax, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x20], edx
jl 0x4cba36
mov eax, dword [ebx - 0x38]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x4cc877
lea edx, [ebp + 0x2cc2c]
lea eax, [ebp + 0x10c2c]
lea esi, [ebp + 0x10c1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov eax, dword [esi - 0x10]
test eax, eax
je 0x4cc848
cmp dword [esi], 0
je 0x4cc848
mov ecx, dword [ebp]
push 0x80
call fcn.0049c8b0
mov ecx, dword [esp + 0x3c]
push 0
add ecx, edi
lea edi, [ebp + ecx*4]
mov ecx, dword [ebp + ecx*4]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push 0x1c
push eax
mov eax, dword [esi - 0x10]
push 0x65
push ecx
mov ecx, dword [ebp]
push edx
push eax
push 0
push 4
call fcn.0049ccf0
mov edi, dword [edi]
push 0
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x18]
mov edi, dword [esp + 0x10]
mov dword [esi - 0x10], 0
mov dword [esi], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx - 0x38]
inc edi
add esi, 4
add edx, 0x7000
add ecx, 0x1800
cmp edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
jl 0x4cc7dd
mov eax, dword [ebp + 0x32c2c]
test eax, eax
je 0x4cc8e3
mov eax, dword [ebp + 0x32c30]
test eax, eax
je 0x4cc8e3
mov ecx, dword [ebp]
push 0x80
call fcn.0049c8b0
mov ecx, dword [ebx - 0x14]
xor esi, esi
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp + 0x32c30]
lea ecx, [ebp + 0x32c34]
push 0x1c
push ecx
mov ecx, dword [ebp + 0x32c2c]
lea edx, [ebp + 0x39c34]
push 0x65
push edx
push eax
push ecx
mov ecx, dword [ebp]
push esi
push 4
call fcn.0049ccf0
mov ecx, dword [ebx - 0x14]
push esi
mov edx, dword [ecx]
call dword [edx + 0x18]
mov dword [ebp + 0x32c2c], esi
mov dword [ebp + 0x32c30], esi
mov eax, dword [esp + 0x3c]
add ebx, 0x2e0
add eax, 0xb8
mov dword [esp + 0x4c], ebx
cmp eax, 0x655
mov dword [esp + 0x3c], eax
jl 0x4cba1c
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret 4
mov eax, dword [0x5e062c]
push str.A3DPlants::Render____RenderToBuffer_Fail_
push eax
call fcn.004c6d70
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x598
ret 4