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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6901
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
xor edx, edx
mov ecx, 0x7fff
mov eax, 0xffff8001
push esi
push edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], cx
mov word [esp + 0x1a], cx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov dword [esp + 0xb0], edx
mov word [esp + 0x4c], cx
mov word [esp + 0x4e], cx
mov word [esp + 0x50], ax
mov word [esp + 0x52], ax
mov eax, dword [ebp + 0x2c]
lea ecx, [esp + 0x68]
push eax
mov byte [esp + 0xb4], 1
mov dword [esp + 0x88], edx
call fcn.0040f9a0
mov eax, dword [ebp + 0x10]
cmp ax, 3
jge 0x4825b4
mov eax, 3
mov dword [ebp + 0x10], eax
movsx eax, ax
movsx ecx, word [ebp + 0x14]
mov dword [esp + 0x20], eax
add eax, 0xfffffffd
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jge 0x4825ce
mov dword [ebp + 0x14], eax
mov esi, dword [ebp + 8]
lea edx, [esp + 0x84]
mov ecx, 7
lea edi, [esp + 0x84]
lea eax, [esp + 0x24]
push edx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004281b0
mov edx, dword [eax + 4]
mov esi, dword [ebp + 0x18]
mov ecx, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x24], edx
mov edx, dword [esi]
add esp, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
movsx eax, bx
cmp eax, edx
jle 0x482633
mov ecx, dword [esi + 4]
cmp eax, ecx
jge 0x482628
mov ecx, dword [esi + 0xc]
sub eax, edx
mov eax, dword [ecx + eax*4]
jmp 0x482638
mov eax, dword [esi + 0xc]
sub ecx, edx
mov eax, dword [eax + ecx*4 - 4]
jmp 0x482638
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x482644
cmp bx, di
jge 0x482644
inc ebx
jmp 0x482610
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], edi
movsx eax, di
cmp eax, edx
jle 0x482672
mov ecx, dword [esi + 4]
cmp eax, ecx
jge 0x482667
mov ecx, dword [esi + 0xc]
sub eax, edx
mov eax, dword [ecx + eax*4]
jmp 0x482677
mov eax, dword [esi + 0xc]
sub ecx, edx
mov eax, dword [eax + ecx*4 - 4]
jmp 0x482677
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x482683
cmp di, bx
jle 0x482683
dec edi
jmp 0x48264f
cmp di, bx
mov dword [esp + 0x34], edi
jge 0x4826af
push 0x167
push 0x4c5c14
push 0x4b1640
push 0
push 0x4c5bfc
push 0x4dca08
call fcn.00441210
add esp, 0x18
cmp dword [0x4dca40], 4
jl 0x4826fc
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x20]
push esi
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push 0
push eax
push ecx
call fcn.00482dd0
add esp, 0x2c
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
movsx eax, word [esp + 0x34]
mov edi, ecx
add edx, edx
movsx ecx, cx
mov ebx, dword [ebp + 0x10]
sub edx, ecx
sub edi, ebx
lea eax, [edx + eax + 1]
mov dword [esp + 0x48], edi
lea edx, [eax + eax*2]
shl edx, 4
push edx
call fcn.00442a90
add esp, 4
cmp di, word [esp + 0x10]
mov esi, eax
mov ebx, edi
mov dword [esp + 0x38], esi
jge 0x482782
movsx eax, di
lea eax, [eax + eax*2]
shl eax, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [ebp + 0x18]
sub eax, ecx
mov ecx, dword [ebp + 0x10]
push 0
push ebx
push ecx
push 0
push edx
push edi
push esi
lea ecx, [eax + esi]
call fcn.00481d60
mov ecx, dword [esp + 0xc]
inc ebx
add ecx, 0x30
cmp bx, word [esp + 0x10]
mov dword [esp + 0xc], ecx
jl 0x48274e
cmp word [ebp + 0x14], 0
mov dword [esp + 0xc], 0
jl 0x4827c8
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push ecx
mov edx, dword [ebp + 0x18]
movsx eax, bx
movsx ecx, di
sub eax, ecx
push 0
push edx
push edi
lea ecx, [eax + eax*2]
push esi
shl ecx, 4
add ecx, esi
call fcn.00481d60
mov eax, dword [esp + 0xc]
inc eax
inc ebx
cmp ax, word [ebp + 0x14]
mov dword [esp + 0xc], eax
jle 0x482791
mov esi, dword [ebp + 8]
mov ecx, 7
lea edi, [esp + 0x84]
lea eax, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004281b0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.004281b0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
movsx eax, word [esp + 0x44]
mov dword [esp + 0x5c], ecx
add esp, 0x10
movsx ecx, word [ebp + 0x14]
movsx esi, bx
sub eax, ecx
mov dword [esp + 0x50], edx
cmp esi, eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jge 0x4829f0
movsx eax, word [esp + 0x48]
mov dword [esp + 0x58], eax
mov cx, word [esp + 0x1c]
mov edi, dword [esp + 0x10]
movsx edx, cx
add edx, edi
cmp esi, edx
jle 0x4828a9
mov ax, word [ebp + 0xc]
cmp word [esp + 0xc], ax
jge 0x4828a9
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x84]
lea ecx, [esp + 0xa0]
push eax
push ecx
mov dword [esp + 0x24], edx
call fcn.004281b0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov cx, word [esp + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
add esp, 8
inc eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0xc], eax
mov ax, word [esp + 0x18]
mov byte [esp + 0x54], 0
cmp bx, ax
mov byte [esp + 0x30], 0
jg 0x4828c4
xor eax, eax
jmp 0x4829a3
movsx eax, ax
lea edx, [eax + edi]
cmp esi, edx
jg 0x4828db
mov ecx, dword [esp + 0x18]
mov eax, ebx
sub eax, ecx
jmp 0x4829a3
cmp bx, cx
jl 0x4828e7
xor eax, eax
jmp 0x4829a3
cmp bx, word [esp + 0x4c]
jl 0x482920
mov dx, word [ebp + 0xc]
cmp word [esp + 0xc], dx
jge 0x48291c
mov edi, dword [esp + 0x4c]
mov eax, ebx
sub eax, edi
movsx ecx, cx
movsx edx, ax
sub ecx, esi
cmp ecx, edx
jge 0x4829a3
mov eax, dword [esp + 0x1c]
sub eax, ebx
jmp 0x4829a3
mov edi, dword [esp + 0x10]
movsx ecx, cx
mov edx, ecx
sub edx, edi
cmp esi, edx
jl 0x482933
mov eax, dword [esp + 0x1c]
sub eax, ebx
jmp 0x4829a3
fild dword [esp + 0x20]
mov edx, esi
sub edx, eax
fmul qword [0x4dca30]
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x482970
sub ecx, esi
mov dword [esp + 0x3c], ecx
fild dword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x482972
mov byte [esp + 0x30], 1
xor eax, eax
jmp 0x4829a3
fstp st(0)
mov edx, dword [ebp + 0x18]
mov byte [esp + 0x54], 1
mov ecx, dword [edx]
cmp esi, ecx
jle 0x48299e
mov eax, dword [edx + 4]
cmp esi, eax
jge 0x482993
mov eax, esi
sub eax, ecx
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + eax*4]
jmp 0x4829a3
mov edx, dword [edx + 0xc]
sub eax, ecx
mov eax, dword [edx + eax*4 - 4]
jmp 0x4829a3
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x18]
push 0
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x78]
mov eax, esi
push ebx
sub eax, ecx
push edx
mov edx, dword [esp + 0x60]
lea ecx, [eax + eax*2]
push edx
shl ecx, 4
add ecx, edx
call fcn.00481ef0
mov eax, dword [esp + 0x24]
inc ebx
movsx esi, bx
cmp esi, eax
jl 0x482849
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, 0x7fff
mov dword [esp + 0x3c], 0xffc00000
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], eax
movsx eax, cx
add edx, eax
mov dword [esp + 0x40], 0x41dfffff
movsx eax, bx
cmp eax, edx
mov dword [esp + 0x20], edx
jge 0x482b18
jmp 0x482a2f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
cmp bx, cx
jge 0x482a3f
movsx edi, cx
sub edi, eax
jmp 0x482a41
xor edi, edi
movsx ecx, word [esp + 0x48]
sub eax, ecx
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x24]
lea eax, [eax + eax*2]
shl eax, 4
lea esi, [eax + edx]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x18]
push 0
push ecx
mov ecx, dword [esp + 0x58]
push eax
push edi
push 0
push 0
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00481ef0
mov byte [esi + 1], 1
mov ax, word [esi + 4]
mov cx, word [esi + 2]
mov dword [esp + 0x24], eax
movsx edi, word [esp + 0xc]
movsx edx, cx
movsx eax, ax
add edx, eax
movsx eax, word [esp + 0x30]
add eax, edi
cmp edx, eax
jg 0x482aff
mov edx, dword [esp + 0xc]
cmp cx, dx
jl 0x482add
jne 0x482ab7
fld qword [esi + 0x28]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 1
jne 0x482add
cmp cx, dx
jne 0x482aff
movsx ecx, word [esp + 0x14]
movsx eax, bx
inc ecx
cmp eax, ecx
jne 0x482aff
fld qword [esi + 0x28]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 0x40
je 0x482aff
mov dword [esp + 0x14], ebx
jmp 0x482aff
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x20]
inc ebx
movsx eax, bx
cmp eax, ecx
jl 0x482a2b
cmp word [esp + 0xc], 0x7fff
jl 0x482b40
mov edi, dword [ebp + 0x18]
push 0x1c0
push 0x4c5c14
push 0x4b1640
push 0
push 0x4c5be4
push 0x4dca08
call fcn.00441210
add esp, 0x18
jmp 0x482b43
mov edi, dword [ebp + 0x18]
movsx eax, word [esp + 0x14]
movsx edx, word [esp + 0x5c]
mov esi, dword [esp + 0x48]
add eax, edx
cdq
movsx ebx, si
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
sub eax, ebx
mov ecx, dword [0x4dc718]
mov dword [esp + 0x58], ebx
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
mov dword [esp + 0x14], eax
movsx eax, word [esp + 0x1c]
cmp eax, ecx
jne 0x482c25
movsx ecx, word [esp + 0x1e]
cmp ecx, dword [0x4dc708]
jne 0x482c25
mov eax, dword [esp + 0x20]
movsx ecx, si
cmp ecx, eax
jge 0x482c25
jmp 0x482baa
mov ebx, dword [esp + 0x58]
mov eax, ecx
sub eax, ebx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x38]
shl edx, 4
add eax, edx
mov edi, dword [eax + 0x20]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x24]
mov dword [esp + 0x24], edi
mov edi, dword [eax + 0x18]
mov edx, dword [edx + 8]
mov dword [esp + 0x28], ebx
mov ebx, dword [eax + 0x1c]
mov dword [esp + 0x3c], edi
mov edi, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x48]
mov edx, ebx
mov dword [esp + 0x4c], ebx
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, edi
push edx
push eax
push ecx
push 0x4c5bc0
mov dword [esp + 0x80], edi
call fcn.00443600
mov eax, dword [esp + 0x44]
add esp, 0x24
inc esi
movsx ecx, si
cmp ecx, eax
jl 0x482ba6
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x28]
mov word [ecx], 0xffff
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x14]
mov ebx, dword [esp + 0x10]
mov esi, dword [edx + 8]
mov edx, dword [ebp + 0x10]
mov ecx, esi
sub ecx, edx
mov edx, esi
add ecx, eax
sub edx, ebx
movsx eax, cx
cmp eax, edx
jge 0x482c8d
mov ebx, dword [edi]
cmp eax, ebx
jle 0x482c71
mov edx, dword [edi + 4]
cmp eax, edx
jge 0x482c66
mov edx, dword [edi + 0xc]
sub eax, ebx
mov eax, dword [edx + eax*4]
jmp 0x482c76
mov eax, dword [edi + 0xc]
sub edx, ebx
mov eax, dword [eax + edx*4 - 4]
jmp 0x482c76
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
test eax, eax
jne 0x482c8d
mov edi, dword [esp + 0x10]
inc ecx
movsx eax, cx
mov edx, esi
sub edx, edi
mov edi, dword [ebp + 0x18]
cmp eax, edx
jl 0x482c51
mov edx, dword [esp + 0x10]
movsx eax, cx
sub esi, edx
cmp eax, esi
jge 0x482ca0
mov eax, dword [ebp + 0x28]
inc word [eax]
push 0x30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0xb0], 2
je 0x482cc8
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00483c10
jmp 0x482cca
xor eax, eax
mov edx, dword [esp + 0x68]
mov byte [esp + 0xb0], 1
cmp dword [edx], 0
jne 0x482ced
mov dword [eax], eax
mov ecx, dword [esp + 0x68]
mov dword [ecx], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], eax
jmp 0x482d27
mov edx, dword [esp + 0x6c]
mov dword [edx], eax
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x482d07
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
jmp 0x482d27
mov edx, dword [esp + 0x74]
mov dword [eax], edx
mov cl, byte [esp + 0x78]
test cl, cl
je 0x482d1b
mov ecx, dword [esp + 0x68]
mov dword [ecx], eax
mov cl, byte [esp + 0x79]
test cl, cl
je 0x482d27
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x14]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x482c2d
lea ecx, [esp + 0x68]
call fcn.00440460
mov ecx, dword [esp + 0x70]
movsx edx, word [esp + 0x30]
fld qword [ecx + 0x18]
fld st(0)
fmulp st(1)
mov dword [esp + 0x24], edx
fidiv dword [esp + 0x24]
fst qword [esp + 0x24]
fld qword [ecx + 0x20]
fsub st(1)
fcomp qword [0x4a8228]
fnstsw ax
test ah, 1
fstp st(0)
je 0x482d97
fld qword [ecx + 0x18]
push edx
sub esp, 8
fstp qword [esp]
fld qword [ecx + 0x20]
sub esp, 8
fstp qword [esp]
push 0x4c5b98
call fcn.00443600
add esp, 0x18
mov eax, dword [esp + 0x38]
push eax
call fcn.00442aa0
mov ecx, dword [esp + 0x74]
add esp, 4
fld qword [ecx + 0x20]
mov ecx, dword [esp + 0xa8]
pop edi
fsub qword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret