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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x358
mov eax, dword [0x5c329c]
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, eax
mov ecx, esi
imul ecx, ecx, 0x84
add ecx, 4
push edi
push ecx
mov dword [esp + 0x20], ebx
mov dword [ebx], eax
call fcn.00587c03
add esp, 4
test eax, eax
je 0x4d0174
mov dword [eax], esi
lea ebp, [eax + 4]
lea eax, [esi - 1]
test eax, eax
jl 0x4d0170
lea esi, [ebp + 4]
lea edi, [eax + 1]
lea esp, [esp]
mov ecx, esi
call fcn.004d0b00
add esi, 0x84
dec edi
jne 0x4d0160
mov eax, ebp
jmp 0x4d0176
xor eax, eax
mov dword [ebx + 4], eax
mov eax, dword [ebx]
xor ecx, ecx
test eax, eax
jle 0x4d01c1
xor edi, edi
mov edx, dword [ecx*4 + 0x7c54f0]
mov eax, dword [edx + 0x4058]
dec eax
cdq
mov ebp, 3
idiv ebp
mov esi, 1
test edx, edx
je 0x4d01aa
cmp ecx, dword [0x7c54e4]
jne 0x4d01ac
xor esi, esi
mov eax, dword [ebx + 4]
mov word [edi + eax + 4], si
mov eax, dword [ebx]
inc ecx
add edi, 0x84
cmp ecx, eax
jl 0x4d0183
mov ecx, dword [0x7ce5d0]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x48], ebp
jne 0x4d01d6
mov ecx, 0x5ea438
lea edx, [esp + 0x128]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4d01e0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x128]
lea ecx, [esp + 0x128]
cmp eax, ecx
jbe 0x4d0226
lea ecx, [ecx]
cmp byte [eax], 0x2e
je 0x4d0223
dec eax
lea edx, [esp + 0x128]
cmp eax, edx
ja 0x4d0210
jmp 0x4d0226
mov byte [eax], 0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x128]
repne scasb al, byte es:[edi]
mov eax, dword [str..MAS]
mov cl, byte [0x5c4490]
dec edi
mov dword [edi], eax
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x4c]
mov byte [edi + 4], cl
mov ecx, dword [0x8afe64]
push eax
call fcn.0053cbc0
test eax, eax
mov esi, 5
je 0x4d02a2
cmp dword [0x7c569c], esi
je 0x4d02a2
push 0xcd
push str.D:devF1_1999_2002Source_steward.cpp
push 1
mov ecx, 0x8ad25c
call fcn.004d7a50
test al, al
je 0x4d02a2
lea ecx, [esp + 0x128]
push ecx
push str.Could_not_load__s
push 0x8ad25c
call fcn.004d7aa0
add esp, 0xc
mov ecx, dword [0x7ce5d0]
cmp ecx, ebp
mov dword [esp + 0x40], ebp
jne 0x4d02b5
mov ecx, 0x5ea438
lea edx, [esp + 0x128]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4d02c0
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x128]
lea edx, [esp + 0x128]
cmp eax, edx
jbe 0x4d0306
lea ecx, [ecx]
cmp byte [eax], 0x2e
je 0x4d0303
dec eax
lea ecx, [esp + 0x128]
cmp eax, ecx
ja 0x4d02f0
jmp 0x4d0306
mov byte [eax], 0
mov edx, dword [str.MAP.MAS]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x128]
repne scasb al, byte es:[edi]
mov eax, dword [0x5d3b54]
dec edi
mov dword [edi], edx
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [0x8afe64]
lea edx, [esp + 0x44]
push edx
mov dword [edi + 4], eax
call fcn.0053cbc0
test eax, eax
je 0x4d037d
cmp dword [0x7c569c], esi
je 0x4d037d
push 0xd4
push str.D:devF1_1999_2002Source_steward.cpp
push 1
mov ecx, 0x8ad25c
call fcn.004d7a50
test al, al
je 0x4d037d
lea eax, [esp + 0x128]
push eax
push str.Could_not_load__s
push 0x8ad25c
call fcn.004d7aa0
add esp, 0xc
mov ecx, dword [0x5ec428]
cmp ecx, ebp
mov dword [esp + 0x28], ebp
jne 0x4d0390
mov ecx, 0x5ea438
mov eax, dword [0x5ec3d8]
cmp eax, ebp
jne 0x4d039e
mov eax, 0x5ea438
push str.CDB.MAS
push ecx
push eax
lea ecx, [esp + 0x134]
push str._s_s_s
push ecx
call fcn.0058815f
mov ecx, dword [0x8afe64]
add esp, 0x14
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0053cbc0
test eax, eax
je 0x4d041a
cmp dword [0x7c569c], esi
je 0x4d0ae9
push 0xdb
push str.D:devF1_1999_2002Source_steward.cpp
push 1
mov ecx, 0x8ad25c
call fcn.004d7a50
test al, al
je 0x4d0ae9
push str.Could_not_load_CDB.MAS
push 0x8ad25c
call fcn.004d7aa0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5ec428]
cmp ecx, ebp
mov dword [esp + 0x44], ebp
jne 0x4d042d
mov ecx, 0x5ea438
mov eax, dword [0x5ec3d8]
cmp eax, ebp
jne 0x4d043b
mov eax, 0x5ea438
push str.CMAPS.MAS
push ecx
push eax
lea ecx, [esp + 0x134]
push str._s_s_s
push ecx
call fcn.0058815f
mov ecx, dword [0x8afe64]
add esp, 0x14
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0053cbc0
test eax, eax
je 0x4d04c7
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [0x8afe64]
call fcn.0053ce40
cmp dword [0x7c569c], esi
je 0x4d0ae9
push 0xe4
push str.D:devF1_1999_2002Source_steward.cpp
push 1
mov ecx, 0x8ad25c
call fcn.004d7a50
test al, al
je 0x4d0ae9
push str.Could_not_load_CMAPS.MAS
push 0x8ad25c
call fcn.004d7aa0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx], ebp
mov dword [esp + 0x20], ebp
jle 0x4d0a82
mov dword [esp + 0x24], 0
nop
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 4]
mov edx, dword [esp + 0x24]
mov ebx, dword [ebp*4 + 0x7c54f0]
push ebp
lea eax, [esp + 0xfc]
add esi, edx
push str.GridModel_02d
push eax
lea edi, [esi + 4]
mov byte [esp + 0x104], 0
call fcn.0058815f
add esp, 0xc
call fcn.005884ed
cdq
mov ecx, 3
idiv ecx
test edx, edx
jne 0x4d052d
mov eax, str.GRIDGIRLA.MTS
jmp 0x4d053c
cmp edx, 1
mov eax, str.GRIDGIRLB.MTS
je 0x4d053c
mov eax, str.GRIDGIRLC.MTS
push 0
push 0
push eax
lea edx, [esp + 0x104]
push edx
mov ecx, edi
call fcn.004a21d0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
mov ecx, 0x8acee0
call fcn.004d10e0
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x34]
call fcn.00566e40
mov eax, dword [0x8aae70]
mov edx, eax
and edx, 0xff
fld dword [edx*4 + 0x8ab274]
inc eax
mov ecx, eax
mov dword [0x8aae70], eax
and ecx, 0xff
fld dword [ecx*4 + 0x8ab274]
inc eax
fmul dword [0x59e7f8]
fxch st(1)
mov dword [0x8aae70], eax
fmul dword [0x59e7f8]
fsub dword [0x59f124]
fld st(1)
fmul dword [esp + 0x4c]
fld dword [esp + 0x54]
fmul st(2)
faddp st(1)
fld dword [esp + 0x50]
fmul dword [0x59e440]
faddp st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x60]
fmul st(1)
fld dword [esp + 0x58]
fmul st(3)
faddp st(1)
fld dword [esp + 0x5c]
fmul dword [0x59e440]
faddp st(1)
fstp dword [esp + 0x80]
fld dword [esp + 0x6c]
fmul st(1)
fld dword [esp + 0x64]
fmul st(3)
faddp st(1)
fld dword [esp + 0x68]
fmul dword [0x59e440]
faddp st(1)
fxch st(2)
fstp st(1)
fstp st(0)
fld dword [esp + 0x7c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x80]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x4d06d6
lea edx, [esp + 0x11c]
push edx
lea edx, [esp + 0xf0]
call fcn.004dd550
fld dword [esp + 0x10]
fstp qword [esp + 0x88]
fld dword [esp + 0x14]
lea eax, [esp + 0x88]
fstp qword [esp + 0x90]
fld dword [esp + 0x18]
push eax
fstp qword [esp + 0x9c]
mov ecx, 0x7c9360
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0x40200000
mov dword [esp + 0xac], 0x40000000
mov dword [esp + 0xb0], 0x479e17b8
mov dword [esp + 0xbc], 0
call fcn.0044c4c0
test eax, eax
je 0x4d06d6
fld qword [esp + 0xb0]
fsub dword [esp + 0xf0]
fstp dword [esp + 0x14]
mov eax, dword [0x8aae70]
mov ecx, eax
and ecx, 0xff
fld dword [ecx*4 + 0x8ab274]
inc eax
lea edx, [esp + 0x34]
fmul dword [0x59e84c]
mov dword [0x8aae70], eax
push edx
lea eax, [esp + 0x74]
fstp dword [esp + 0x78]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
call fcn.00567120
fld dword [esp + 0x50]
fmul dword [0x59e440]
lea ecx, [esp + 0x34]
fld dword [esp + 0x54]
push ecx
fmul dword [0x59e440]
lea edx, [esp + 0x14]
push edx
faddp st(1)
mov ecx, edi
mov dword [esp + 0x3c], 0
fadd dword [esp + 0x54]
fld dword [esp + 0x70]
mov dword [esp + 0x44], 0
fmul dword [0x59e440]
fld dword [esp + 0x74]
fmul dword [0x59e440]
faddp st(1)
fadd dword [esp + 0x6c]
fxch st(1)
fpatan
fchs
fstp dword [esp + 0x40]
fld dword [esp + 0x1c]
fsub dword [0x5acee0]
fstp dword [esp + 0x1c]
call fcn.004a2800
fld dword [esp + 0x14]
mov dword [esp + 0x2c], 0
fsub dword [0x5acedc]
mov dword [esp + 0x30], 0xffffffff
fstp dword [esp + 0x14]
call fcn.005884ed
test al, 1
mov ecx, str.GIRLA
jne 0x4d07be
mov ecx, str.GIRLB
lea edx, [esp + 0xdc]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4d07c5
push 0x5ea438
lea ecx, [esp + 0x30]
call fcn.00566650
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x30]
call fcn.00566650
push str..ANM
lea ecx, [esp + 0x30]
call fcn.005665b0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4d0809
mov eax, 0x5ea438
push 0
push 0
push eax
lea ecx, [esp + 0xe8]
push ecx
mov ecx, edi
call fcn.004a22d0
mov eax, dword [edi + 0x70]
test eax, eax
jle 0x4d088a
mov eax, dword [0x8aae70]
mov ebp, dword [edi + 0x74]
mov edx, eax
and edx, 0xff
fld dword [edx*4 + 0x8ab274]
inc eax
fmul dword [0x59e7e8]
mov dword [0x8aae70], eax
push ecx
fadd dword [0x59e43c]
mov ecx, ebp
fmul dword [ebp + 0x10]
fstp dword [esp]
push 0
call fcn.004a1fd0
mov eax, dword [ebp + 4]
mov ebp, dword [esp + 0x20]
mov dword [esi + 0x7c], eax
mov eax, dword [0x8aae70]
mov ecx, eax
and ecx, 0xff
fld dword [ecx*4 + 0x8aae74]
inc eax
mov dword [0x8aae70], eax
fmul dword [esi + 0x7c]
fstp dword [esi + 0x80]
push ebp
lea edx, [esp + 0x24c]
push str.GridSign_02d
push edx
call fcn.0058815f
mov dword [esi], 0
mov eax, dword [edi + 0x64]
add esp, 0xc
test eax, eax
je 0x4d09ee
mov ecx, dword [0x8afe88]
push 0x10
push str.GGIRLSIGN.MTS
lea eax, [esp + 0x250]
push eax
push esi
call fcn.005450e0
mov ecx, dword [esi]
test ecx, ecx
je 0x4d09ee
push 0
call fcn.0054c230
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
fadd dword [0x59e7e8]
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push ecx
mov ecx, dword [esi]
fstp dword [esp]
push edx
call fcn.0054b4d0
mov eax, dword [esi]
mov ecx, dword [0x8afe88]
push eax
call fcn.00545250
test edi, edi
je 0x4d092d
mov ecx, dword [0x8afe88]
push 0
push edi
call fcn.00545930
lea ecx, [ebx + 0x4708]
push ecx
lea edx, [esp + 0x22c]
push str._s.BMP
push edx
call fcn.0058815f
add esp, 0xc
push 0
push 1
push 0
push str.WCNUMBER.BMP
lea eax, [esp + 0x238]
push eax
mov edx, 1
mov ecx, str.WCNUMBER
call fcn.004dc770
push 0x1f
add ebx, 0x4660
lea ecx, [esp + 0xc0]
push ebx
push ecx
call fcn.00587dd0
lea edx, [esp + 0xc8]
push edx
mov byte [esp + 0xeb], 0
call fcn.00589901
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea edi, [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1b
jae 0x4d09cc
or ecx, 0xffffffff
lea edi, [esp + 0xbc]
repne scasb al, byte es:[edi]
mov eax, dword [str..BMP]
mov cl, byte [0x5cc7a0]
dec edi
mov dword [edi], eax
mov byte [edi + 4], cl
push 0
push 1
push 0
push str.WCFLAG.BMP
lea edx, [esp + 0xcc]
push edx
mov edx, 1
mov ecx, str.WCFLAG
call fcn.004dc770
mov ecx, dword [0x8afe88]
call fcn.00543fa0
test eax, eax
je 0x4d0a50
mov ecx, dword [0x8afe64]
lea eax, [esp + 0x268]
push eax
push 0
call fcn.0053c5b0
cmp dword [0x7c569c], 5
je 0x4d0a50
push 0x170
push str.D:devF1_1999_2002Source_steward.cpp
push 1
mov ecx, 0x8ad25c
call fcn.004d7a50
test al, al
je 0x4d0a50
lea ecx, [esp + 0x268]
push ecx
push ebp
push str.Unable_to_setup_scene_after_initializing_grid_character__d:__s
push 0x8ad25c
call fcn.004d7aa0
add esp, 0x10
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4d0a61
push eax
call fcn.00587bcf
add esp, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
inc ebp
add ecx, 0x84
cmp ebp, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
jl 0x4d04e0
mov eax, dword [esp + 0x48]
mov ecx, dword [0x8afe64]
push eax
call fcn.0053ce40
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [0x8afe64]
call fcn.0053ce40
mov edx, dword [esp + 0x28]
mov ecx, dword [0x8afe64]
push edx
call fcn.0053ce40
mov eax, dword [esp + 0x44]
mov ecx, dword [0x8afe64]
push eax
call fcn.0053ce40
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jle 0x4d0ae9
xor edi, edi
mov ecx, dword [ebx + 4]
lea ecx, [edi + ecx + 4]
call fcn.004a27d0
mov eax, dword [ebx]
inc esi
add edi, 0x84
cmp esi, eax
jl 0x4d0ad0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret