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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1fc
push ebx
push ebp
push esi
push edi
push eax
mov edi, ecx
call fcn.0044ad80
mov ecx, dword [edi + 8]
lea ebp, [edi + 0x54]
push ecx
mov ecx, ebp
call fcn.004d5dd0
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
jle 0x4d6363
xor ebx, ebx
test esi, esi
jl 0x4d6a44
cmp esi, dword [ebp]
jge 0x4d6a44
mov ecx, dword [ebp + 4]
mov eax, dword [edi + 0x40]
add ecx, ebx
cmp esi, eax
jge 0x4d6a18
mov edx, dword [edi + 0x44]
mov eax, dword [edx + esi*4]
mov edx, dword [edi + 0x34]
push esi
push ecx
add eax, edx
push str.MODEL
push eax
mov ecx, 0x578140
call fcn.0044a610
cmp esi, dword [edi + 0x40]
jge 0x4d69f2
mov eax, dword [edi + 0x44]
mov eax, dword [eax + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.WEIGHT
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d69c4
mov ecx, dword [ebp + 4]
fstp dword [ecx + ebx + 0x60]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d6998
mov edx, dword [edi + 0x44]
mov eax, dword [edx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.MAXWEIGHT
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d696a
mov eax, dword [ebp + 4]
fstp dword [eax + ebx + 0x64]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d693e
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + esi*4]
mov ecx, dword [edi + 0x34]
push esi
add eax, ecx
push str.STANDARD
push eax
mov ecx, 0x578140
call fcn.0044aa90
cmp esi, dword [ebp]
jge 0x4d6912
mov edx, dword [ebp + 4]
mov dword [edx + ebx + 0x68], eax
cmp esi, dword [edi + 0x40]
jge 0x4d68e6
mov eax, dword [edi + 0x44]
mov eax, dword [eax + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.DAMAGE
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d68b8
mov ecx, dword [ebp + 4]
fstp dword [ecx + ebx + 0x6c]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d688c
mov edx, dword [edi + 0x44]
mov eax, dword [edx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.RESFRONT
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d685e
mov eax, dword [ebp + 4]
fstp dword [eax + ebx + 0x70]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d6832
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.TURBULENCE
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d6804
fadd dword [0x521590]
mov edx, dword [ebp + 4]
fdivr dword [0x524b58]
fstp dword [edx + ebx + 0x7c]
cmp esi, dword [edi + 0x40]
jge 0x4d67d8
mov eax, dword [edi + 0x44]
mov eax, dword [eax + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.RESTOP
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d67aa
mov ecx, dword [ebp + 4]
fstp dword [ecx + ebx + 0x78]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d677e
mov edx, dword [edi + 0x44]
mov eax, dword [edx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.RESSIDE
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d6750
mov eax, dword [ebp + 4]
fstp dword [eax + ebx + 0x74]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d6724
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.STABFRONT
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d66f6
mov edx, dword [ebp + 4]
fstp dword [edx + ebx + 0x80]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d66ca
mov eax, dword [edi + 0x44]
mov eax, dword [eax + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.STABSIDE
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d669c
mov ecx, dword [ebp + 4]
fstp dword [ecx + ebx + 0x84]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d6670
mov edx, dword [edi + 0x44]
mov eax, dword [edx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.ROTATESPEED
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d6642
mov eax, dword [ebp + 4]
fstp dword [eax + ebx + 0x88]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d6616
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push 0x52cd2c
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d65e8
fmul dword [0x52cd28]
mov edx, dword [ebp + 4]
fstp dword [edx + ebx + 0x8c]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d65bc
mov eax, dword [edi + 0x44]
mov eax, dword [eax + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.DELTAT
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d658e
fmul dword [0x5223a0]
mov ecx, dword [ebp + 4]
fstp dword [ecx + ebx + 0x90]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d6562
mov edx, dword [edi + 0x44]
mov eax, dword [edx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.PRICE
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d6534
mov eax, dword [ebp + 4]
fstp dword [eax + ebx + 0x184]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d6508
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + esi*4]
mov edx, dword [edi + 0x34]
push esi
add eax, edx
push str.RESTORE
push eax
mov ecx, 0x578140
call fcn.0044a670
cmp esi, dword [ebp]
jge 0x4d64da
mov edx, dword [ebp + 4]
fstp dword [edx + ebx + 0x188]
mov eax, dword [edi + 0x40]
cmp esi, eax
jge 0x4d64ae
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x34]
mov eax, dword [eax + esi*4]
push esi
add eax, ecx
push str.SPECIAL
push eax
mov ecx, 0x578140
call fcn.0044aa90
cmp esi, dword [ebp]
jge 0x4d6482
mov edx, dword [ebp + 4]
mov cl, al
not cl
and cl, 1
mov byte [edx + ebx + 0x18d], cl
cmp esi, dword [ebp]
jge 0x4d6456
mov ecx, dword [ebp + 4]
mov dl, byte [ecx + ebx + 0x18d]
test dl, dl
je 0x4d6323
cmp esi, dword [ebp]
jge 0x4d63de
mov edx, dword [ebp + 4]
cmp dword [edx + ebx + 0x68], 2
jle 0x4d6323
mov ecx, 1
jmp 0x4d6325
xor ecx, ecx
cmp esi, dword [ebp]
jge 0x4d642a
mov edx, dword [ebp + 4]
mov byte [edx + ebx + 0x18d], cl
cmp esi, dword [ebp]
jge 0x4d6404
mov ecx, dword [ebp + 4]
shr eax, 1
not al
and al, 1
mov byte [ecx + ebx + 0x18c], al
mov eax, dword [edi + 8]
inc esi
add ebx, 0x214
cmp esi, eax
jl 0x4d5f13
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
jle 0x4d63d1
xor ebx, ebx
mov edi, edi
test ebx, ebx
jl 0x4d6abc
cmp esi, dword [ebp]
jge 0x4d6abc
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
add eax, ebx
cmp esi, ecx
jge 0x4d6a90
mov ecx, dword [ebp + 4]
add ecx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [0x5b7470]
push eax
add ecx, 0x30
call fcn.00404620
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
cmp esi, dword [ebp]
jge 0x4d6a6a
mov edx, dword [ebp + 4]
mov byte [edx + ebx + 0x94], 0
mov eax, dword [edi + 8]
inc esi
add ebx, 0x214
cmp esi, eax
jl 0x4d6370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc
ret 4
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x6c]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x6c]
push edx
call fcn.00514dd6
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x84]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x84]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x84]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x168]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x168]
push edx
call fcn.00514dd6
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1d4]
mov dword [esp + 0x38], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x1d4]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x10]
fstp st(0)
push edx
lea ecx, [esp + 0x1ec]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x1ec]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x204]
mov dword [esp + 0x40], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x204]
push edx
call fcn.00514dd6
lea eax, [esp + 0x10]
fstp st(0)
push eax
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x1b0]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0xc0]
mov dword [esp + 0x5c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0xc0]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x10]
fstp st(0)
push ecx
lea ecx, [esp + 0x9c]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x9c]
push edx
call fcn.00514dd6
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x48], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0xd8]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x10]
fstp st(0)
push edx
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x1e0]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x2c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0xf0]
push edx
call fcn.00514dd6
lea eax, [esp + 0x10]
fstp st(0)
push eax
lea ecx, [esp + 0x180]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x180]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x108]
mov dword [esp + 0x50], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x108]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x10]
fstp st(0)
push ecx
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x1c8]
push edx
call fcn.00514dd6
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x120]
mov dword [esp + 0x34], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x120]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x10]
fstp st(0)
push edx
lea ecx, [esp + 0x198]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x198]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x138]
mov dword [esp + 0x44], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x138]
push edx
call fcn.00514dd6
lea eax, [esp + 0x10]
fstp st(0)
push eax
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x1f8]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x150]
mov dword [esp + 0x3c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x150]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x10]
fstp st(0)
push ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0xa8]
push edx
call fcn.00514dd6
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xb4]
mov dword [esp + 0x4c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0xb4]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x10]
fstp st(0)
push edx
lea ecx, [esp + 0xcc]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0xcc]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xe4]
mov dword [esp + 0x24], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0xe4]
push edx
call fcn.00514dd6
lea eax, [esp + 0x10]
fstp st(0)
push eax
lea ecx, [esp + 0xfc]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0xfc]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x114]
mov dword [esp + 0x54], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x114]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x10]
fstp st(0)
push ecx
lea ecx, [esp + 0x12c]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x12c]
push edx
call fcn.00514dd6
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x144]
mov dword [esp + 0x58], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x144]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x15c]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x15c]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x174]
mov dword [esp + 0x28], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x174]
push edx
call fcn.00514dd6
lea eax, [esp + 0x10]
fstp st(0)
push eax
lea ecx, [esp + 0x18c]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x18c]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1a4]
mov dword [esp + 0x30], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x1a4]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x10]
fstp st(0)
push ecx
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x14], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x1bc]
push edx
call fcn.00514dd6
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x1c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x78]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x90]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x60]
push edx
call fcn.00514dd6
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x60]
push ecx
call fcn.00514dd6
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x90]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x1c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x78]
push edx
call fcn.00514dd6
int3