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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x72b7bb
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x68]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
mov esi, ecx
je 0x49b130
cmp edi, dword [ebx + 0x380]
jne 0x49b130
mov eax, dword [esp + 0x7c]
cmp eax, dword [ebx + 0x384]
jne 0x49b130
push 0
push 0
mov ecx, ebx
call fcn.0052b220
push 0
mov ecx, ebx
call fcn.0052b2a0
and dword [ebx + 0x10], 0xffffbfff
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
cmp ebx, eax
jne 0x49b130
mov ecx, dword [0x7c67dc]
push 0
push 0x2c1
call fcn.0040f930
push eax
push 0x7c6180
call fcn.005f4e70
push 0xbf800000
push 0xbf800000
push 0xbf800000
push 1
push 0
call fcn.005f5500
add esp, 0x20
mov al, byte [esp + 0x9c]
test al, al
push 0
je 0x49b216
push edi
push ebx
mov ecx, esi
call fcn.00499370
test eax, eax
je 0x49b152
mov dword [esp + 0x7c], eax
mov eax, dword [0x7c67e0]
mov byte [esp + 0x78], 0
mov ebp, dword [eax + 0xac]
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x10], ebp
jne 0x49b1a2
lea ecx, [esp + 0x78]
push ecx
sub esp, 0xc
lea edx, [esp + 0x94]
mov ecx, esp
mov dword [esp + 0xac], esp
push edx
call fcn.0040a7e0
mov ecx, dword [0x7c67e0]
call fcn.00431170
mov ecx, eax
call fcn.004c1730
mov dword [esp + 0x10], eax
mov ebp, eax
mov ecx, ebp
call fcn.004e2330
mov dword [esp + 0x14], eax
cmp dword [esp + 0x80], 1
mov byte [esp + 0x9c], 1
ja 0x49b1c7
mov byte [esp + 0x9c], 0
push 0x50
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
mov dword [esp + 0x6c], esi
je 0x49b1e6
mov ecx, eax
call fcn.004e4510
mov esi, eax
mov eax, dword [esp + 0x7c]
test eax, eax
mov dword [esp + 0x6c], 0xffffffff
je 0x49b206
push eax
mov ecx, esi
call fcn.004e7890
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
cmp edi, dword [0x791c60]
jne 0x49b27f
test eax, eax
je 0x49b234
mov edi, dword [eax]
jmp 0x49b23b
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
push edi
push ebx
mov ecx, esi
call fcn.00499550
jmp 0x49b152
mov edi, dword [esp + 0x80]
mov edx, 1
mov eax, 0x791c68
mov ecx, dword [eax]
cmp edi, ecx
je 0x49b25a
jb 0x49b266
add eax, 0xc
inc edx
cmp eax, 0x791c98
jl 0x49b245
jmp 0x49b275
lea eax, [edx + edx*2]
mov edi, dword [eax*4 + 0x791c60]
jmp 0x49b270
lea ecx, [edx + edx*2]
mov edi, dword [ecx*4 + 0x791c54]
cmp edx, 5
jl 0x49b27b
mov edi, dword [0x791c90]
mov eax, dword [esp + 0x7c]
mov cl, byte [esp + 0x9c]
test cl, cl
je 0x49b2b0
test eax, eax
jne 0x49b2b0
push edi
call fcn.004e7750
mov edx, dword [esp + 0x84]
xor ecx, ecx
add esp, 4
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push eax
mov ecx, esi
mov dword [eax], edx
call fcn.004e7890
xor eax, eax
test ebx, ebx
je 0x49b2b9
mov eax, dword [ebx + 0x14]
mov ecx, dword [0x7c67dc]
push eax
push 1
push edi
call fcn.00411050
push ebp
push esi
lea eax, [esp + 0x80]
push eax
mov eax, dword [0x7c67e0]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x94]
push edx
push edi
call fcn.004c0e80
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004ef7b0
fld dword [eax + 8]
fabs
fst dword [esp + 0x9c]
fcomp dword [0x7475e8]
fnstsw ax
test ah, 1
je 0x49b329
fld dword [esp + 0x8c]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x88]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x8c]
mov dword [esi + 0x40], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x84]
add eax, 0x30
mov dword [eax], ecx
mov edx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
test eax, eax
je 0x49b4c6
mov ecx, dword [0x7c67dc]
call fcn.0040ff20
mov eax, dword [eax + 0x14]
fld dword [eax + 0x38]
add eax, 0x38
fsub dword [esp + 0x84]
fld dword [eax + 4]
fsub dword [esp + 0x88]
fld dword [eax + 8]
fsub dword [esp + 0x8c]
fstp dword [esp + 0x7c]
fld st(0)
fmul st(1)
fld dword [esp + 0x7c]
fmul dword [esp + 0x7c]
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fcomp dword [0x747a6c]
fnstsw ax
test ah, 0x41
jne 0x49b4c6
mov bl, byte [0x7c8f71]
mov ecx, 0x7cb478
call fcn.004d51b0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
mov ebp, eax
mov byte [0x7c8f71], 1
call fcn.004ef7b0
fld dword [eax + 8]
sub esp, 8
lea eax, [esp + 0x30]
fstp qword [esp]
push eax
mov ecx, edi
call fcn.004ef7b0
fld dword [eax + 4]
sub esp, 8
lea ecx, [esp + 0x44]
fstp qword [esp]
push ecx
mov ecx, edi
call fcn.004ef7b0
fld dword [eax]
mov edx, dword [esi]
sub esp, 8
fstp qword [esp]
sub esp, 8
fld dword [esp + 0xbc]
sub esp, 8
fstp qword [esp + 8]
sub esp, 8
fld dword [esp + 0xbc]
sub esp, 8
fstp qword [esp + 0x10]
mov ecx, esi
fld dword [esp + 0xc0]
fstp qword [esp + 8]
fld dword [esp + 0xbc]
fstp qword [esp]
call dword [edx + 0x20]
push eax
push str.DropObjectInWorld_tried_to_place_object__s_too_far__npos____.2f___.2f___.2f__nlift___.2f_nBoundMin_____.2f___.2f___.2f_
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x44
push ebp
call fcn.00477400
mov ecx, dword [0x7c67dc]
add esp, 4
mov byte [0x7c8f71], bl
call fcn.0040ff20
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x38]
mov ebp, dword [esp + 0x10]
add eax, 0x38
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x8c], eax
push esi
mov ecx, ebp
call fcn.004de060
mov ecx, eax
call fcn.004f1a40
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x14]
push 0
mov ecx, ebp
call fcn.004e2680
mov ecx, dword [0x7c67e0]
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.00486330
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov ebp, eax
push 0
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.004e8450
push eax
lea ecx, [ebp + 0x2c]
call fcn.006e93d0
lea ecx, [edi + 4]
call fcn.004ee8b0
cmp eax, 0x4847494c
jne 0x49b549
mov ecx, dword [0x7c67e0]
mov eax, dword [ecx + 0xac]
test eax, eax
je 0x49b542
push eax
mov ecx, esi
call fcn.004eb7b0
jmp 0x49b555
call fcn.00485c50
jmp 0x49b555
mov ecx, dword [0x7c67e0]
push esi
call fcn.00485e40
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x2c