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

Disassembly:
push 0xffffffffffffffff
push 0x4c6f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0x2d4]
test al, al
mov dword [esp + 0x28], edi
jne 0x49c310
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x49c310
mov eax, dword [edi + 0x24]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x49c310
test ecx, ecx
jne 0x49bcc6
xor eax, eax
jmp 0x49bcce
mov eax, dword [edi + 0x24]
sub eax, ecx
sar eax, 2
add eax, 0xfffffffe
cmp eax, 0xc8
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc8
jbe 0x49c310
jmp 0x49bd00
mov edi, dword [esp + 0x28]
mov edi, edi
mov esi, dword [edi + 0x178]
mov ebx, dword [esp + 0x1c]
xor edx, edx
lea esp, [esp]
test esi, esi
je 0x49bd62
mov eax, dword [edi + 0x17c]
sub eax, esi
sar eax, 3
cmp edx, eax
jae 0x49bd62
test ebx, ebx
mov ecx, dword [edi + 0x178]
mov dword [esp + 0x14], ebx
fild dword [esp + 0x14]
jge 0x49bd3b
fadd dword [0x4f15e0]
fcom dword [ecx + edx*8]
fnstsw ax
test ah, 1
jne 0x49bd5d
fcomp dword [ecx + edx*8 + 4]
fnstsw ax
test ah, 5
jp 0x49bd5f
mov dword [esp + 0x20], 0
jmp 0x49c2fb
fstp st(0)
inc edx
jmp 0x49bd10
mov ecx, dword [edi + 0x168]
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], 0x447a0000
xor ebx, ebx
mov dword [esp + 0x14], ecx
jmp 0x49bd80
test ecx, ecx
je 0x49bf7d
mov eax, dword [edi + 0x16c]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jae 0x49bf7d
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x168]
fld dword [ecx + ebx*8]
mov esi, dword [eax + 0x20]
lea ebp, [ecx + ebx*8]
call fcn.004adeb4
mov edx, dword [esp + 0x1c]
mov edi, dword [esi + edx*4]
mov eax, dword [esi + eax*4]
mov ecx, edi
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x30]
xor ecx, ecx
sub eax, edx
fld dword [esp + ecx*4 + 0x30]
lea edx, [eax + ecx*4]
fsub dword [esp + edx + 0x30]
inc ecx
cmp ecx, 2
fstp dword [esp + ecx*4 + 0x2c]
jb 0x49bdd4
mov eax, dword [esp + 0x30]
fld dword [0x4fc4b8]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
xor eax, eax
fld dword [esp + eax*4 + 0x48]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x49be01
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x49be2a
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x49be2c
fsqrt
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x49be74
fld dword [0x4fc4b8]
xor eax, eax
fld dword [esp + eax*4 + 0x48]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x49be43
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x49be6e
fstp st(0)
mov dword [esp + 0x18], 0
jmp 0x49be74
fsqrt
fstp dword [esp + 0x18]
fld dword [ebp + 4]
call fcn.004adeb4
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, dword [esi + eax*4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x40]
xor ecx, ecx
sub eax, edx
fld dword [esp + ecx*4 + 0x40]
lea edx, [eax + ecx*4]
fsub dword [esp + edx + 0x40]
inc ecx
cmp ecx, 2
fstp dword [esp + ecx*4 + 0x3c]
jb 0x49be94
mov eax, dword [esp + 0x40]
fld dword [0x4fc4b8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
xor eax, eax
fld dword [esp + eax*4 + 0x48]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x49bec1
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x49beea
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x49beec
fsqrt
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x49bf34
fld dword [0x4fc4b8]
xor eax, eax
fld dword [esp + eax*4 + 0x48]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x49bf03
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x49bf2e
fstp st(0)
mov dword [esp + 0x18], 0
jmp 0x49bf34
fsqrt
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x49bf46
fadd dword [0x4f15e0]
fcom dword [ebp]
fnstsw ax
test ah, 1
jne 0x49bf6d
fcomp dword [ebp + 4]
fnstsw ax
test ah, 5
jp 0x49bf6f
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov byte [esp + 0x13], 1
inc ebx
jmp 0x49bd80
fstp st(0)
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
inc ebx
jmp 0x49bd80
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x20]
shl ecx, 2
mov esi, dword [eax + ecx]
mov eax, dword [eax + ecx + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov ecx, esi
lea edx, [esp + 0x38]
xor eax, eax
sub ecx, edx
fld dword [esp + eax*4 + 0x38]
lea edx, [ecx + eax*4]
fsub dword [esp + edx + 0x38]
inc eax
cmp eax, 2
fstp dword [esp + eax*4 + 0x34]
jb 0x49bfa5
mov eax, dword [esp + 0x38]
fld dword [0x4fc4b8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
xor eax, eax
fld dword [esp + eax*4 + 0x58]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x49bfd2
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x49bffb
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x49bffd
fsqrt
fadd dword [esp + 0x20]
fst dword [esp + 0x20]
fcomp dword [0x4f78e0]
fnstsw ax
test ah, 0x41
jne 0x49c2fb
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x2c]
and edx, 0x80000001
mov dword [esp + 0xa4], ebx
jns 0x49c034
dec edx
or edx, 0xfffffffe
inc edx
mov ebp, 0xf
jne 0x49c0ee
mov eax, str._objects_city_steps0.xml
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49c054
sub eax, edx
push eax
push str._objects_city_steps0.xml
lea ecx, [esp + 0x6c]
call fcn.00402cd0
push ebx
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xb4], 1
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov edi, dword [eax]
cmp edi, ebx
je 0x49c095
inc dword [edi + 4]
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0xa4], 1
je 0x49c0c0
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x14], edx
jne 0x49c0c0
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x7c], 0x10
mov byte [esp + 0xa4], 0
jb 0x49c0dc
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
jmp 0x49c1ba
mov eax, 0x4f78a8
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49c110
sub eax, edx
push eax
push 0x4f78a8
lea ecx, [esp + 0x88]
call fcn.00402cd0
push ebx
push ebx
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xb4], 3
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov edi, dword [eax]
cmp edi, ebx
je 0x49c157
inc dword [edi + 4]
mov eax, dword [esp + 0x60]
cmp eax, ebx
mov dword [esp + 0x24], edi
mov byte [esp + 0xa4], 3
je 0x49c182
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x14], edx
jne 0x49c182
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x98], 0x10
mov byte [esp + 0xa4], 0
jb 0x49c1a4
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004ade5d
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], 0
fld dword [esp + 0x20]
lea ecx, [esp + 0x58]
fsub dword [0x4f78e0]
fstp dword [esp + 0x20]
call fcn.00465170
fsub dword [0x4f7314]
push 1
lea edx, [esp + 0x18]
push edx
mov ecx, edi
fstp dword [esp + 0x1c]
call fcn.00424750
fld dword [0x4f2a08]
fsub dword [esi + 4]
mov al, byte [esp + 0x13]
test al, al
fadd dword [0x4f78e0]
fstp dword [esp + 0x14]
jne 0x49c215
fld dword [esp + 0x18]
fcomp dword [0x4f78a4]
fnstsw ax
test ah, 5
jp 0x49c21d
mov dword [esp + 0x14], 0x444a8000
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00424870
mov eax, dword [esp + 0xac]
push eax
mov ecx, edi
call fcn.00424c80
cmp edi, ebx
push 1
push 1
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], edi
je 0x49c253
inc dword [edi + 4]
mov byte [esp + 0xb0], 5
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0xb0], 0
call dword [edx + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x138]
add esi, 0x134
cmp ecx, ebx
jne 0x49c287
xor edx, edx
jmp 0x49c28f
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
cmp ecx, ebx
je 0x49c2c0
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x49c2c0
mov eax, dword [esp + 0x50]
mov ebp, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
push 1
push ebp
call fcn.00470810
add esp, 0x14
add ebp, 4
mov dword [esi + 8], ebp
jmp 0x49c2d6
mov eax, dword [esi + 8]
lea edx, [esp + 0x24]
push edx
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, esi
call fcn.0042a1d0
mov ecx, dword [esp + 0x2c]
inc ecx
test edi, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xa4], 0xffffffff
je 0x49c2fb
dec dword [edi + 4]
jne 0x49c2fb
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x49bcfa
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret 4