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

Disassembly:
sub esp, 0x28
mov eax, dword [0x8bb984]
push ebx
push ebp
push esi
xor edx, edx
cmp eax, 0x96
push edi
mov dword [esp + 0x10], 0x8cccd0
jle 0x474134
mov edx, 0x10
jmp 0x474142
test byte [0x85c154], 8
je 0x474142
mov edx, 0x100000
mov ecx, dword [0x86baac]
and cl, 1
neg cl
mov eax, 1
sbb ecx, ecx
and ecx, 0xfffffffa
add ecx, 0x17
shl eax, cl
or edx, eax
mov eax, dword [0x85c164]
test al, 4
je 0x47416d
or edx, 0x10000
test al, al
mov dword [0x72768c], 0xffffffff
jns 0x47417d
xor edx, edx
shr eax, 7
and eax, 1
push eax
push 0
push edx
call fcn.00473ad0
mov edx, dword [0x816308]
mov eax, dword [0x816304]
mov ecx, dword [0x8cc9d0]
push 1
push edx
push eax
mov dword [esp + 0x4c], ecx
call fcn.0045f9d0
mov dword [0x85c0f8], eax
mov dword [esp + 0x34], eax
mov al, byte [0x8cc9e8]
add esp, 0x18
test al, al
je 0x474294
mov ecx, dword [0x85c268]
mov edi, dword [0x85c26c]
mov eax, 0x2aaaaaab
imul ecx
mov esi, edx
mov eax, edi
shr esi, 0x1f
add esi, edx
cdq
and edx, 3
add eax, edx
mov ebx, eax
lea eax, [edi + edi*2]
sub ecx, esi
cdq
sub ecx, 4
and edx, 7
mov ebp, ecx
add eax, edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
mov edi, eax
push 0
sar edi, 3
push str.tornPaper.dds
sar ebx, 2
sub edi, 0x10
mov dword [esp + 0x34], 0x80
mov dword [esp + 0x2c], 0x100
call fcn.004ceb00
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push 0
push 0xffffffffffffffff
push esi
push ebx
push ebp
push edi
push ecx
push edx
push 0
push 0
push eax
call fcn.004af500
mov ecx, dword [0x85c268]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x85c26c]
add esp, 0x40
push 0
lea eax, [eax + eax*2]
cdq
push 0xc8
push 1
push 0xff1a3e1a
and edx, 7
add eax, edx
push 0x32
sar eax, 3
push ecx
add eax, 3
push eax
push 0x878bf8
xor eax, eax
call fcn.004b0b40
add esp, 0x20
mov eax, dword [0x878bd8]
test eax, eax
mov byte [0x86bb48], 0
mov ebp, 0xa
je 0x47435c
push str.Quests:
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c11c]
mov eax, dword [0x8ccc18]
imul eax, ecx
cdq
and edx, 0x3ff
add esp, 4
add eax, edx
sar eax, 0xa
push 0
mov dword [esp + 0x34], eax
mov eax, dword [0x8cbdd8]
push 0x86bb48
push eax
mov dword [0x8cbde0], eax
call fcn.0050ac80
fild dword [0x72837c]
fmul st(1)
fidiv dword [0x8ccc18]
fimul dword [esp + 0x30]
fmul dword [0x715584]
call fcn.005f275c
fstp st(0)
mov esi, eax
mov eax, dword [0x878bd8]
lea ecx, [eax + eax*2]
lea edx, [esi + ecx*8 + 6]
push 0xc
push ebp
mov eax, 2
mov ecx, 0xe
call fcn.00488400
push 0
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push 0x4b
push ebp
push 0x10
push 0x86bb48
xor eax, eax
mov dword [0x85c11c], 0x4b
call fcn.004b0b40
add esp, 0x28
lea ebp, [esi + 0x15]
mov dword [0x878bd8], 0
xor edi, edi
mov esi, 0x2d
lea ecx, [ecx]
mov eax, edi
imul eax, eax, 0x148
mov ecx, dword [eax + 0x85c270]
test ecx, ecx
je 0x4744f2
mov ecx, dword [eax + 0x85c380]
test ecx, ecx
js 0x4744f2
mov eax, dword [0x8de30c]
mov ecx, dword [0x8de310]
sub eax, ebp
add ecx, 0xffffffed
inc eax
jns 0x4743a9
neg eax
test ecx, ecx
jge 0x4743af
neg ecx
cmp eax, ecx
jle 0x4743b8
lea eax, [ecx + eax*2]
jmp 0x4743bb
lea eax, [eax + ecx*2]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0xf
jg 0x474477
mov ecx, dword [0x8cc9d0]
inc ecx
cmp edi, 3
lea edx, [edi + 0x64]
mov dword [0x72768c], edx
mov dword [0x8cc9d0], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], 0x20
ja case.default.0x4743f0
jmp dword [edi*4 + 0x474e38]
mov eax, dword [0x85c384]
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 0x8cd100]
mov eax, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
push str._TOP10s_Treasure
mov esi, 0x8ebf58
mov dword [edx + 8], ecx
call fcn.004f7660
add esp, 0x10
jmp case.default.0x4743f0
movsx edx, word [0x86bb1c]
push edx
push str.Lost__RELATIVE
mov esi, 0x8ebf58
call fcn.004f7660
add esp, 8
jmp case.default.0x4743f0
push str.Lost_City
jmp 0x474457
push str.Marquis_Montalbans_Hideout
mov esi, 0x8ebf58
call fcn.004f7660
add esp, 4
mov ebx, 0x86bb48
lea eax, [esp + 0x10]
call fcn.00412f10
mov esi, 0x2d
cmp edi, 3
ja case.default.0x47447c
jmp dword [edi*4 + 0x474e48]
mov eax, 0x17
mov dword [esp + 0x14], 0x41
jmp 0x4744c6
movsx eax, word [0x86bb1c]
mov dword [esp + 0x14], 0x3c
jmp 0x4744c6
mov eax, 0x14
mov dword [esp + 0x14], esi
jmp 0x4744c6
mov eax, 0x15
mov dword [esp + 0x14], esi
jmp 0x4744c6
mov eax, 0x16
mov dword [esp + 0x14], 0x4b
fild dword [esp + 0x14]
push 0
push ecx
lea eax, [eax + eax*2]
fstp dword [esp]
push 0x14
shl eax, 6
push ebp
add eax, 0x8d6358
push eax
call fcn.004bc130
mov eax, dword [0x878bd8]
add ebp, 0x18
inc eax
mov dword [0x878bd8], eax
inc edi
cmp edi, 4
jl 0x474370
mov dword [esp + 0x18], 0
mov ebx, 0x863b88
lea esp, [esp]
cmp word [ebx - 0x10], 0
je 0x4746e7
mov ecx, dword [ebx]
cmp ecx, 0x28
jl 0x474527
lea edi, [ecx - 0x10]
jmp 0x474551
cmp ecx, 0x1e
jl 0x47454e
movsx edx, word [ebx - 0xa]
shl edx, 5
mov edx, dword [edx + 0x85c988]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
lea edi, [edx + eax + 0xd]
jmp 0x474551
lea edi, [ecx + 4]
mov eax, dword [0x8de30c]
mov edx, dword [0x8de310]
sub eax, ebp
add edx, 0xffffffed
inc eax
jns 0x474566
neg eax
test edx, edx
jge 0x47456c
neg edx
cmp eax, edx
jle 0x474575
lea eax, [edx + eax*2]
jmp 0x474578
lea eax, [eax + edx*2]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0xf
jg 0x4746c2
mov edx, dword [esp + 0x18]
add edx, 0xc8
mov dword [0x72768c], edx
mov edx, dword [0x8cc9d0]
inc edx
sub esp, 0xc
cmp ecx, 0x28
mov dword [0x8cc9d0], edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], 0x20
jl 0x4745cb
lea eax, [ecx + ecx*2 - 0x78]
mov edx, esp
lea ecx, [eax*4 + 0x8cd178]
push str._EVILNAME
jmp 0x474625
cmp ecx, 0x1e
jl 0x474614
lea edx, [ecx + ecx*2 - 0x5a]
lea eax, [edx*4 + 0x8cd19c]
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
movsx eax, word [ebx - 0xa]
cdq
mov ecx, 0x1a
idiv ecx
mov esi, 0x8ebf58
add dl, 0x41
movsx edx, dl
push edx
push str.Mr.__CHAR.__NPCNAME
call fcn.004f7660
add esp, 0x14
jmp 0x474642
lea eax, [ecx + ecx*2]
mov edx, esp
lea ecx, [eax*4 + 0x8cd100]
push str._TOP10
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov esi, 0x8ebf58
mov dword [edx + 8], ecx
call fcn.004f7660
add esp, 0x10
mov eax, 0x86bb48
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474650
sub eax, edx
mov esi, eax
js 0x4746c2
mov eax, dword [esp + 0x10]
cmp eax, 0x86bb48
je 0x4746c2
test esi, esi
je 0x4746ad
jle 0x47468c
mov edx, eax
cmp esi, dword [edx - 8]
jle 0x474685
lea eax, [esi + 0x20]
and eax, 0xffffffe0
dec eax
lea ecx, [esp + 0x10]
call fcn.004f49c0
mov eax, dword [esp + 0x10]
mov dword [eax - 4], esi
mov ecx, dword [esp + 0x10]
push esi
push 0x86bb48
push ecx
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax - 4]
add esp, 0xc
mov byte [eax + edx], 0
jmp 0x4746c2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x4746c2
mov byte [eax], 0
mov dword [eax - 4], 0
push 0
push 0x42820000
push 0x14
lea ecx, [edi + edi*2]
shl ecx, 6
push ebp
add ecx, 0x8d6358
push ecx
call fcn.004bc130
inc dword [0x878bd8]
add ebp, 0x18
mov edx, dword [esp + 0x18]
inc edx
add ebx, 0x24
cmp ebx, 0x864008
mov dword [esp + 0x18], edx
jl 0x474510
call fcn.00404810
mov ecx, dword [0x86bb34]
and ecx, 4
mov dword [esp + 0x2c], eax
mov eax, dword [0x86bab0]
or ecx, 8
shr ecx, 2
inc eax
cdq
idiv ecx
mov ecx, eax
test ecx, ecx
je 0x47473d
mov eax, dword [0x86bab8]
lea edx, [eax + eax*4]
mov eax, dword [0x8cc9ec]
lea eax, [eax + edx*2]
cdq
idiv ecx
mov ebx, eax
jmp 0x474742
mov ebx, 0xc
mov ecx, dword [0x86bab4]
push ecx
xor edi, edi
push str._NUM
mov esi, 0x8ebf58
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], edi
mov dword [0x85c11c], 0x4b
call fcn.004f7660
mov eax, dword [0x85c11c]
imul eax, dword [0x8ccc18]
cdq
and edx, 0x3ff
add esp, 8
add eax, edx
sar eax, 0xa
push edi
mov dword [esp + 0x28], eax
mov eax, dword [0x8cbdd8]
push 0x86bb48
push eax
mov dword [0x8cbde0], eax
call fcn.0050ac80
fild dword [0x72837c]
fmul st(1)
fidiv dword [0x8ccc18]
fimul dword [esp + 0x24]
fmul dword [0x715584]
call fcn.005f275c
fstp st(0)
test eax, eax
jle 0x4747ca
mov edi, eax
mov dword [esp + 0x18], edi
push ebx
mov ebp, 0x32
push str._NUM_months
mov esi, 0x8ebf58
mov dword [0x85c11c], ebp
call fcn.004f7660
mov eax, dword [0x85c11c]
imul eax, dword [0x8ccc18]
cdq
and edx, 0x3ff
add esp, 8
add eax, edx
sar eax, 0xa
push 0
mov dword [esp + 0x28], eax
mov eax, dword [0x8cbdd8]
push 0x86bb48
push eax
mov dword [0x8cbde0], eax
call fcn.0050ac80
fild dword [0x72837c]
fmul st(1)
fidiv dword [0x8ccc18]
fimul dword [esp + 0x24]
fmul dword [0x715584]
call fcn.005f275c
fstp st(0)
cmp eax, edi
jle 0x474844
mov edi, eax
mov dword [esp + 0x18], edi
mov edx, dword [0x86bab0]
push edx
push str._NUM_crew
mov esi, 0x8ebf58
mov dword [0x85c11c], ebp
call fcn.004f7660
mov eax, dword [0x85c11c]
imul eax, dword [0x8ccc18]
cdq
and edx, 0x3ff
add esp, 8
add eax, edx
sar eax, 0xa
push 0
mov dword [esp + 0x28], eax
mov eax, dword [0x8cbdd8]
push 0x86bb48
push eax
mov dword [0x8cbde0], eax
call fcn.0050ac80
fild dword [0x72837c]
fmul st(1)
fidiv dword [0x8ccc18]
fimul dword [esp + 0x24]
fmul dword [0x715584]
call fcn.005f275c
fstp st(0)
cmp eax, edi
jle 0x4748bd
mov dword [esp + 0x18], eax
mov ecx, dword [0x85c26c]
mov ebx, dword [0x85c268]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
cmp dword [esp + 0x18], 0x2d
lea ebp, [edi - 0x2f]
lea ecx, [ebx - 0x64]
push 0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ecx
push 0x427a0000
jl 0x47493e
fild dword [0x728740]
fmul dword [0x7158c4]
fiadd dword [esp + 0x1c]
call fcn.005f275c
fild dword [0x72873c]
push eax
fmul dword [0x7158c4]
fiadd dword [esp + 0x30]
call fcn.005f275c
push eax
push 0x728708
jmp 0x47496f
fild dword [0x8d4710]
fmul dword [0x7158c4]
fiadd dword [esp + 0x1c]
call fcn.005f275c
fild dword [0x8d470c]
push eax
fmul dword [0x7158c4]
fiadd dword [esp + 0x30]
call fcn.005f275c
push eax
push 0x8d46d8
call fcn.004bc130
mov al, byte [0x85c164]
test al, 0x40
je 0x4749ec
test al, al
js 0x4749f0
mov edx, dword [0x81630c]
neg edx
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
push ecx
fmul qword [0x715750]
fstp dword [esp]
push 0x41c80000
push ebx
push edi
push 0x8d4558
call fcn.004bc130
mov edx, dword [0x81630c]
mov eax, dword [0x7273bc]
sub eax, edx
sub eax, 0x80000000
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x24]
cdq
sub eax, edx
fmul qword [0x715750]
sub esp, 8
sar eax, 1
add eax, 0xa
fstp dword [esp + 4]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jmp 0x474aa3
test al, al
jns 0x474a5a
mov ecx, dword [0x85c810]
neg ecx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
push ecx
fmul qword [0x715750]
fstp dword [esp]
push 0x41c80000
push ebx
push edi
push 0x8d4558
call fcn.004bc130
mov edx, dword [0x7273bc]
mov esi, dword [0x85c810]
mov eax, dword [esp + 0x1c]
sub edx, esi
sub edx, 0x80000000
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
cdq
sub eax, edx
sub esp, 8
fmul qword [0x715750]
sar eax, 1
add eax, 0xa
fstp dword [esp + 4]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jmp 0x474aa3
push 0x33b40000
push 0x41c80000
push ebx
push edi
push 0x8d4558
call fcn.004bc130
mov eax, dword [0x7273bc]
add eax, 0x80000000
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x24]
cdq
sub eax, edx
fmul qword [0x715750]
sub esp, 8
sar eax, 1
add eax, 0xa
fstp dword [esp + 4]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fstp dword [esp]
push ebx
push edi
push 0x8d4618
call fcn.004bc130
mov ecx, dword [esp + 0x1c]
push ecx
push str._NUM_knots
mov esi, 0x8ebf58
call fcn.004f7660
mov ecx, dword [0x85c268]
mov eax, 0x66666667
imul ecx
push 0
push 0xffffffffffffffff
sar edx, 3
push 4
mov eax, edx
shr eax, 0x1f
push 0xffffffffffffffff
add eax, edx
push 0x32
add eax, ebx
push eax
push edi
push 0x86bb48
xor eax, eax
mov dword [0x85c11c], 0x32
call fcn.004b0b40
mov ecx, dword [0x86bab4]
push ecx
push str._NUM
call fcn.004f7660
mov edi, dword [esp + 0x44]
push 0
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push 0x4b
lea edx, [edi + 0x42]
push edx
lea eax, [ebp + 0x64]
push eax
push 0x86bb48
xor eax, eax
mov dword [0x85c11c], 0x4b
call fcn.004b0b40
mov ecx, dword [esp + 0x78]
add esp, 0x50
push ecx
push str._NUM_months
call fcn.004f7660
push 0
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push 0x32
add edi, 0x5d
push edi
lea edx, [ebp + 0x6b]
push edx
push 0x86bb48
xor eax, eax
mov dword [0x85c11c], 0x32
call fcn.004b0b40
mov eax, dword [esp + 0x54]
add esp, 0x28
test eax, eax
jne 0x474b8c
test byte [0x85c154], 4
je 0x474bc6
mov eax, dword [esp + 0x2c]
test eax, eax
jge 0x474b98
xor eax, eax
jmp 0x474ba2
cmp eax, 3
jle 0x474ba2
mov eax, 3
mov ecx, dword [esp + 0x14]
push 0
push 0x41c00000
lea eax, [eax + eax*2]
add ecx, 0x7c
push ecx
lea edx, [ebp + 0x58]
shl eax, 6
push edx
add eax, 0x8d3958
push eax
call fcn.004bc130
mov ecx, dword [0x86bab0]
push ecx
push str._NUM_crew
mov esi, 0x8ebf58
call fcn.004f7660
mov edx, dword [esp + 0x1c]
push 0
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push 0x32
add edx, 0x76
push edx
add ebp, 0x63
push ebp
push 0x86bb48
xor eax, eax
mov dword [0x85c11c], 0x32
call fcn.004b0b40
mov ecx, dword [0x85c268]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov byte [0x86bb48], 0
mov edi, ecx
mov dword [0x85c11c], 0x64
call fcn.0043fcd0
push eax
push str._NUM
call fcn.004f7660
mov ecx, dword [0x85c11c]
push 0
push 0xffffffffffffffff
push 4
push 0xffff4060
push ecx
mov ecx, dword [0x85c26c]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
push eax
push 0x86bb48
xor eax, eax
call fcn.004b0b40
add esp, 0x50
push str.Fame
call fcn.004f7660
mov ecx, dword [0x85c26c]
mov eax, 0x4ec4ec4f
imul ecx
push 0
push 0xffffffffffffffff
push 4
sar edx, 2
push 0xffffffffffffffff
mov ecx, edx
push 0x4b
shr ecx, 0x1f
add edi, 0x22
push edi
add ecx, edx
push ecx
push 0x86bb48
xor eax, eax
mov dword [0x85c11c], 0x4b
call fcn.004b0b40
mov eax, dword [0x72768c]
mov ecx, dword [0x727690]
add esp, 0x24
cmp ecx, eax
je case.0x474ce7.9
cmp eax, 0xffffffff
je case.0x474ce7.9
lea ecx, [eax - 8]
cmp ecx, 7
ja case.0x474ce7.9
movzx edx, byte [ecx + 0x474e60]
jmp dword [edx*4 + 0x474e58]
push 0xffffffffffffffff
push 0xbf800000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x36
push 0x8ca278
call fcn.00488920
mov eax, dword [0x72768c]
add esp, 0x1c
mov ecx, dword [esp + 0x34]
mov dword [0x727690], eax
mov eax, dword [0x8cc9d0]
cmp eax, ecx
mov ebx, 0x43
jg 0x474dc8
mov dword [0x8cc9d0], 0
mov edi, dword [esp + 0x10]
mov edx, dword [0x7273b4]
mov eax, dword [0x85c140]
mov esi, dword [0x85c150]
add eax, edx
push eax
push esi
call fcn.00404780
add esp, 4
push eax
mov eax, 0x57619f1
imul esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
mov ecx, 0xc
idiv ecx
mov esi, 0x8ebf58
push edx
push str._MONTH__NUM___NUM
call fcn.004f7660
mov edx, dword [0x85c268]
push 0
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push ebx
add edx, 0xffffffee
push edx
push 8
push 0x86bb48
xor eax, eax
mov dword [0x85c11c], ebx
call fcn.004b0b40
lea eax, [edi - 8]
add esp, 0x30
test eax, eax
je 0x474dc0
cmp eax, 0x8cccc8
je 0x474dc0
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp eax, 0xf
jle 0x474d34
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 4]
test eax, eax
je 0x474d38
mov eax, dword [esp + 0x30]
cmp eax, 0x1ae
push 0
mov dword [0x85c11c], ebx
push 0xffffffffffffffff
jle 0x474e16
push 4
push 0xff000000
add eax, 0xfffffff0
push ebx
push eax
mov eax, dword [esp + 0x38]
push eax
push edi
xor eax, eax
call fcn.004b0b40
add esp, 0x20
jmp 0x474d38
mov ecx, dword [esp + 0x28]
push 1
push 0xff000000
push ebx
add eax, 0xfffffff8
push eax
push ecx
push edi
xor eax, eax
call fcn.004b0b40
add esp, 0x20
jmp 0x474d38