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

Disassembly:
mov eax, dword [0x8cccd8]
sub esp, 0x248
push ebx
push ebp
push esi
push edi
xor ebx, ebx
cmp eax, ebx
mov ecx, 0x400
mov esi, 0x7262d0
mov edi, 0x862b68
rep movsd dword es:[edi], dword [esi]
jne 0x46c862
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, eax
call dword [sym.imp.USER32.dll_GetCursor]
mov dword [esp + 0x80], eax
mov eax, esi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [0x8cbdec]
mov edx, dword [0x7275f8]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
push edx
add esi, 0x14
push ebx
push ebx
call dword [eax + 0x10]
mov ecx, dword [esi]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
or eax, 0xffffffff
mov ecx, 0x10863
mov edi, 0x7d4168
rep stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x8431
mov edi, 0x74fe48
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or eax, 0xffffffff
mov ecx, 0x8431
mov edi, 0x770f10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x85c270
mov dword [eax], ebx
add eax, 0x148
cmp eax, 0x85c790
jl 0x46c8d1
push 0x8000
push ebx
or eax, 0xffffffff
mov ecx, 0x300
mov edi, 0x864110
push 1
rep stosd dword es:[edi], eax
push str.piratemap.dta
lea ecx, [esp + 0x5c]
mov dword [0x7273b0], ebx
mov dword [0x85c160], ebx
mov dword [0x85c164], ebx
mov dword [esp + 0x78], 0x8cccd0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x5c], 0x6f7814
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.004f6200
cmp eax, ebx
jne 0x46ca44
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x46c971
mov edi, dword [esp + 0x74]
push 0x7b30a0
mov eax, 0x210c6
call fcn.004ff910
jmp 0x46c984
push 0x210c6
push 0x7b30a0
lea ecx, [esp + 0x54]
call fcn.004f27d0
lea ecx, [esp + 0x4c]
call fcn.004f64c0
push 0x8000
push ebx
push 1
push str.piratemapz.dta
lea ecx, [esp + 0x5c]
call fcn.004f6200
test eax, eax
jne 0x46c9d7
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x46c9c4
mov edi, dword [esp + 0x74]
push 0x7d4168
mov eax, 0x4218c
call fcn.004ff910
jmp 0x46c9d7
push 0x4218c
push 0x7d4168
lea ecx, [esp + 0x54]
call fcn.004f27d0
lea ecx, [esp + 0x4c]
call fcn.004f64c0
push 0x8000
push ebx
push 1
push str.piratemap8.dta
lea ecx, [esp + 0x5c]
call fcn.004f6200
cmp eax, ebx
jne 0x46ca36
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x46ca23
mov edi, dword [esp + 0x74]
push 0x791fd8
mov eax, 0x210c6
call fcn.004ff910
lea ecx, [esp + 0x4c]
call fcn.004f64c0
jmp 0x46cc31
push 0x210c6
push 0x791fd8
lea ecx, [esp + 0x54]
call fcn.004f27d0
lea ecx, [esp + 0x4c]
call fcn.004f64c0
jmp 0x46cc31
xor esi, esi
mov dword [esp + 0x20], ebx
mov ebp, 0x7d4168
nop
fild dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x14], ebx
fstp dword [esp + 0x28]
mov edi, edi
mov ecx, dword [esp + 0x20]
mov edx, dword [0x72ed78]
push 2
push ebx
push ecx
push edx
call fcn.004e8900
movsx eax, al
mov byte [esi + 0x791fd8], al
mov byte [esi + 0x7b30a0], 0
xor ecx, ecx
mov edx, 1
shl edx, cl
test eax, edx
je 0x46ca97
inc byte [esi + 0x7b30a0]
inc ecx
cmp ecx, 9
jl 0x46ca86
fild dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov edi, dword [0x72ed78]
push 1
push ecx
fstp dword [esp]
push eax
mov al, 1
call fcn.004e8db0
call fcn.005f275c
add ebx, 0x3e8
mov word [ebp], ax
inc esi
add ebp, 2
cmp ebx, 0x47888
mov dword [esp + 0x14], ebx
jl 0x46ca60
mov ecx, dword [esp + 0x20]
add ecx, 0x3e8
cmp ebp, 0x8162f4
mov dword [esp + 0x20], ecx
jl 0x46ca50
mov edi, dword [sym.imp.MSVCR71.dll__open]
push 0x8302
push str.assets_data_piratemap.dta
call edi
mov esi, dword [sym.imp.MSVCR71.dll__write]
push 0x210c6
push 0x7b30a0
push eax
mov dword [0x8f01f0], eax
call esi
mov ecx, dword [0x8f01f0]
mov ebx, dword [sym.imp.MSVCR71.dll__close]
add esp, 0x14
push ecx
call ebx
add esp, 4
push 0x8302
push str.assets_data_piratemap8.dta
call edi
push 0x210c6
push 0x791fd8
push eax
mov dword [0x8f01f0], eax
call esi
mov edx, dword [0x8f01f0]
add esp, 0x14
push edx
call ebx
add esp, 4
push 0x8302
push str.assets_data_piratemapz.dta
call edi
push 0x4218c
push 0x7d4168
push eax
mov dword [0x8f01f0], eax
call esi
mov eax, dword [0x8f01f0]
add esp, 0x14
push eax
call ebx
add esp, 4
push 0x8301
push str.assets_data_piratemap.txt
call edi
add esp, 8
mov dword [0x8f01f0], eax
xor ebp, ebp
xor eax, eax
mov ecx, 0x73
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [ebp + 0x7b30a0]
jmp 0x46cbc0
mov dl, byte [ecx]
add dl, 0x30
mov byte [esp + eax + 0x88], dl
inc eax
add ecx, 0x125
cmp eax, 0x1ce
jl 0x46cbc0
mov ecx, dword [0x8f01f0]
push 0x1cf
lea eax, [esp + 0x8c]
push eax
push ecx
call esi
mov eax, dword [0x8f01f0]
add esp, 0xc
push 2
lea edx, [esp + 0x8c]
push edx
push eax
mov byte [esp + 0x94], 0xa
mov byte [esp + 0x95], 0xd
call esi
add esp, 0xc
inc ebp
cmp ebp, 0x125
jl 0x46cba0
mov ecx, dword [0x8f01f0]
push ecx
call ebx
add esp, 4
mov al, byte [esp + 0x25c]
test al, al
jne 0x46dc00
call fcn.00402880
mov edi, 0x862b70
mov ebx, 0x85dff6
mov esi, 0x85d174
jmp 0x46cc60
mov ecx, dword [esi - 4]
add ecx, 0x1f4
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [esi]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, 0x1f4
mov dword [edi - 8], eax
mov eax, 0x10624dd3
imul ecx
mov eax, dword [edi]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esi + 4]
add edx, 0xaaaaaaa
sar edx, 0x18
add edx, 0x10
sar edx, 5
and edx, 7
test al, 2
mov dword [edi - 4], ecx
mov word [ebx], dx
jne 0x46ccbe
or eax, 0x40000000
mov dword [edi], eax
add esi, 0x10
add ebx, 0x94
add edi, 0x20
cmp esi, 0x85d434
jl 0x46cc60
mov ecx, dword [0x7273b4]
add ecx, 0xfffff9c0
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, 4
sub edi, eax
mov ecx, 0x862b68
mov ebx, 0x80000000
test edi, edi
mov eax, dword [ecx + 0x1c]
jle 0x46cd1c
mov esi, edi
lea esp, [esp]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
dec esi
jne 0x46cd10
and eax, 0x8000000f
jns 0x46cd28
dec eax
or eax, 0xfffffff0
inc eax
jne 0x46cd2d
or dword [ecx + 8], ebx
test dword [ecx + 8], ebx
jne 0x46cd66
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
imul eax, eax, 0x125
add eax, edx
mov dl, byte [eax + 0x7b30a0]
test dl, dl
jne 0x46cd50
mov byte [eax + 0x7b30a0], 1
cmp ecx, 0x8630e8
jge 0x46cd66
mov byte [eax + 0x74fe48], 1
mov byte [eax + 0x770f10], 0xc
add ecx, 0x20
cmp ecx, 0x8630e8
jl 0x46cd00
push 0x210c6
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
mov ecx, 0x8431
mov esi, 0x7b30a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add esp, 4
mov esi, 0x862b68
mov ebp, 0xc0000000
jmp 0x46cda0
test dword [esi + 8], ebp
jne 0x46cde4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, ecx
imul eax, eax, 0x125
mov byte [eax + edx + 0x7b30a0], 9
xor eax, eax
lea esp, [esp]
mov edi, dword [eax + 0x7272f0]
add edi, ecx
imul edi, edi, 0x125
add edi, dword [eax + 0x727350]
add eax, 4
cmp eax, 0x20
mov byte [edi + edx + 0x7b30a0], 9
jl 0x46cdc0
add esi, 0x20
cmp esi, 0x8630e8
jl 0x46cda0
call fcn.00444620
mov ecx, 0x8431
mov esi, ebx
mov edi, 0x7b30a0
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov edx, 0x862b68
test dword [edx + 8], ebp
jne 0x46ce53
mov esi, dword [edx]
mov edi, dword [edx + 4]
xor eax, eax
nop
mov ecx, dword [eax + 0x7272f0]
mov ebx, dword [eax + 0x727350]
add ecx, esi
imul ecx, ecx, 0x125
add ecx, ebx
mov bl, byte [ecx + edi + 0x7b30a0]
add ecx, edi
cmp bl, 9
jge 0x46ce4b
mov byte [ecx + 0x72ed80], 1
add eax, 4
cmp eax, 0x20
jl 0x46ce20
add edx, 0x20
cmp edx, 0x8630e8
jl 0x46ce13
mov eax, 0x862b80
movsx edx, byte [eax - 0xc]
mov dword [eax], edx
add eax, 0x20
cmp eax, 0x863140
jle 0x46ce63
mov dword [esp + 0x28], 1
call fcn.004030e0
mov dword [esp + 0x1c], 0x2f
jmp 0x46ce90
mov dword [esp + 0x18], 0
mov edi, dword [sym.imp.MSVCR71.dll_rand]
call edi
cdq
mov ecx, 0x194
idiv ecx
mov esi, edx
add esi, 0x33
mov dword [esp + 0x20], esi
call edi
cdq
mov ecx, 0x107
idiv ecx
mov eax, dword [0x727744]
mov ebx, edx
add ebx, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x2c], ebx
jne 0x46ceec
mov dword [0x727744], 0x24
mov dword [0x878be8], 0x2b
mov dword [0x878be4], 0xa
cmp ebx, 0xf5
mov eax, 1
jle 0x46cefb
xor eax, eax
cmp ebx, 0x21
jge 0x46cf02
xor eax, eax
lea edx, [ebx + ebx*2]
lea ecx, [edx + esi*2]
cmp ecx, 0x207
jg 0x46cf12
xor eax, eax
imul esi, esi, 0x125
lea ecx, [esi + ebx]
cmp byte [ecx + 0x7b30a0], 5
mov dword [esp + 0x10], eax
jl 0x46cf33
cmp word [ecx*2 + 0x7d4168], 0
jne 0x46cf40
mov dword [esp + 0x10], 0
jmp 0x46d036
test eax, eax
je 0x46d036
mov esi, dword [esp + 0x20]
mov eax, dword [0x85c268]
mov ecx, esi
sub ecx, ebx
add ecx, eax
mov eax, dword [0x85c26c]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jge 0x46cf6d
mov dword [esp + 0x10], 0
xor ecx, ecx
xor eax, eax
mov edx, dword [eax + 0x7272f0]
mov ebp, dword [eax + 0x727350]
add edx, esi
imul edx, edx, 0x125
add edx, ebp
cmp byte [edx + ebx + 0x7b30a0], 0
jne 0x46cf92
inc ecx
add eax, 8
cmp eax, 0x20
jl 0x46cf71
test ecx, ecx
jne 0x46cfa2
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
mov ebp, 0xfff
mov dword [esp + 0x14], 0xffffffff
jle 0x46cffe
mov esi, 0x862b68
mov edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
sub eax, ebx
sub ecx, edx
jns 0x46cfd1
neg ecx
test eax, eax
jge 0x46cfd7
neg eax
cmp ecx, eax
jle 0x46cfe0
lea eax, [eax + ecx*2]
jmp 0x46cfe3
lea eax, [ecx + eax*2]
cdq
sub eax, edx
sar eax, 1
cmp eax, ebp
jge 0x46cff2
mov ebp, eax
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x1c]
inc edi
add esi, 0x20
cmp edi, eax
jl 0x46cfc0
mov ecx, dword [0x727678]
mov eax, 0x10624dd3
imul dword [esp + 0x18]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
add ecx, 2
cmp ebp, ecx
jge 0x46d02a
mov dword [esp + 0x10], 0
jmp 0x46d036
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46d2fd
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x2710
mov dword [esp + 0x18], eax
jl 0x46ce98
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46d066
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x80
mov dword [esp + 0x1c], eax
jl 0x46ce90
call fcn.0046c680
call fcn.0046c530
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
mov esi, 1
mov eax, 5
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x24], edx
jmp 0x46d0a0
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x1ce]
mov dword [esp + 0x14], eax
mov ebp, 1
lea eax, [edx + ecx - 0x1c9]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
cmp dword [0x727744], 0xffffffff
jne 0x46d0ed
mov dword [0x727744], 0x24
mov dword [0x878be8], 0x2b
mov dword [0x878be4], 0xa
cmp ebp, 0xf5
mov eax, 1
jle 0x46d0fc
xor eax, eax
cmp ebp, 0x21
jge 0x46d103
xor eax, eax
cmp dword [esp + 0x14], 0x207
jg 0x46d10f
xor eax, eax
mov ecx, eax
xor eax, eax
jmp 0x46d120
mov edx, dword [eax + 0x7272f0]
mov edi, dword [eax + 0x727350]
add edx, esi
imul edx, edx, 0x125
add edx, edi
cmp byte [edx + ebp + 0x770f10], 0
jle 0x46d142
xor ecx, ecx
add eax, 4
cmp eax, 0x20
jl 0x46d120
test ecx, ecx
je 0x46dbaa
mov al, byte [ebx + ebp + 0x7b31c5]
cmp al, 9
je 0x46dbaa
cmp al, 4
jg 0x46d1fe
test al, al
je 0x46d1fe
mov eax, dword [esp + 0x2c]
cdq
mov ecx, 0x11
idiv ecx
test edx, edx
jne 0x46d1fe
lea edx, [ebx + ebp]
cmp word [edx*2 + 0x7d43b2], 0
jne 0x46d1fe
mov byte [esp + 0x30], 0
mov byte [esp + 0x31], 2
mov byte [esp + 0x32], 8
mov byte [esp + 0x33], 0x20
mov byte [esp + 0x34], 6
mov byte [esp + 0x35], 9
mov byte [esp + 0x36], 0x12
mov byte [esp + 0x37], 0x21
mov byte [esp + 0x38], 0x18
mov byte [esp + 0x39], 0x24
mov byte [esp + 0x3a], 0x16
mov byte [esp + 0x3b], 0x19
mov byte [esp + 0x3c], 0x25
mov byte [ebx + ebp + 0x771035], 0x10
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 0xd
idiv ecx
xor esi, esi
movsx edi, byte [esp + edx + 0x30]
mov edx, dword [esp + 0x20]
call fcn.00488730
mov esi, dword [esp + 0x10]
cmp byte [ebx + ebp + 0x7b31c5], 9
jne 0x46dbaa
cmp byte [ebx + ebp + 0x7b31c4], 5
jle 0x46d224
cmp byte [ebx + ebp + 0x7b31c6], 5
jg 0x46dbaa
mov eax, dword [esp + 0x2c]
cdq
mov ecx, 0x1b
idiv ecx
test edx, edx
jne 0x46dbaa
mov esi, dword [0x72ed78]
lea edx, [ebx + ebp]
movsx eax, word [edx*2 + 0x7d43b2]
mov dword [esp + 0x1c], eax
push 0x10
mov byte [ebx + ebp + 0x771035], 0x12
fild dword [esp + 0x20]
fstp dword [esp + 0x80]
fild dword [esp + 0x2c]
fmul dword [0x715698]
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
fmul dword [0x715698]
fstp dword [esp + 0x2c]
call fcn.005354b8
mov edi, eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov edx, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
add esi, 0xac
mov dword [edi + 0xc], 0x43fa0000
mov edx, dword [esi]
add esp, 4
mov ecx, esi
call dword [edx + 4]
mov dword [eax + 8], edi
mov dword [eax], 0
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46db7d
mov dword [ecx], eax
jmp 0x46db80
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [0x72ed78]
mov ebp, eax
mov ecx, ebx
imul ecx, ecx, 0x3e8
shl ebp, 5
mov dword [ebp + 0x862b68], edx
imul edx, edx, 0x3e8
add ecx, 0x1f4
mov dword [esp + 0x18], ecx
shl eax, 4
mov dword [eax + 0x85d174], ecx
fild dword [esp + 0x18]
lea ecx, [edx + 0x1f4]
mov dword [esp + 0x10], ecx
push 0x10
fstp dword [esp + 0x28]
mov dword [ebp + 0x862b6c], ebx
fild dword [esp + 0x14]
mov dword [eax + 0x85d170], ecx
mov dword [ebp + 0x862b70], 2
mov byte [ebp + 0x862b74], 5
fstp dword [esp + 0x1c]
call fcn.005354b8
mov ecx, dword [esp + 0x1c]
mov edi, eax
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov dword [esp + 0x44], ecx
mov dword [eax + 4], edx
mov dword [esp + 0x4c], 0x40a00000
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
add esi, 0xac
mov dword [esp + 0x48], edx
mov dword [edi + 0xc], 0x43fa0000
mov edx, dword [esi]
add esp, 4
mov ecx, esi
call dword [edx + 4]
mov dword [eax + 8], edi
mov dword [eax], 0
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46d3d9
mov dword [ecx], eax
jmp 0x46d3dc
mov dword [esi + 4], eax
inc dword [esi + 0xc]
mov edi, dword [esp + 0x14]
shl edi, 5
mov dword [esi + 8], eax
mov eax, dword [edi + 0x862b80]
cmp eax, 7
ja case.default.0x46d3f8
jmp dword [eax*4 + 0x46dfa4]
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 3
idiv ecx
test edx, edx
setne dl
jmp 0x46d4e0
call dword [sym.imp.MSVCR71.dll_rand]
and eax, 0x80000003
jns 0x46d429
dec eax
or eax, 0xfffffffc
inc eax
setne al
add al, 6
mov byte [ebp + 0x862b74], al
jmp case.default.0x46d3f8
call dword [sym.imp.MSVCR71.dll_rand]
and eax, 0x80000003
jns 0x46d44b
dec eax
or eax, 0xfffffffc
inc eax
neg eax
sbb al, al
and al, 3
add al, 4
mov byte [ebp + 0x862b74], al
jmp case.default.0x46d3f8
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 5
idiv ecx
neg edx
sbb dl, dl
and dl, 3
add dl, 4
jmp 0x46d4e3
call dword [sym.imp.MSVCR71.dll_rand]
and eax, 0x80000001
jns 0x46d48a
dec eax
or eax, 0xfffffffe
inc eax
neg eax
sbb al, al
and al, 0xfe
add al, 7
mov byte [ebp + 0x862b74], al
jmp case.default.0x46d3f8
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 3
idiv ecx
test edx, edx
setne dl
add dl, 4
jmp 0x46d4e3
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 3
idiv ecx
neg edx
sbb dl, dl
and dl, cl
add dl, 4
jmp 0x46d4e3
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 3
idiv ecx
neg edx
sbb dl, dl
and dl, 0xfe
add dl, 6
mov byte [ebp + 0x862b74], dl
cmp dword [esp + 0x28], 0xa
jge 0x46d4fe
cmp dword [esp + 0x1c], 0x6c
jl 0x46d4fe
mov byte [ebp + 0x862b74], 4
mov esi, dword [esp + 0x1c]
movsx eax, byte [ebp + 0x862b74]
imul esi, esi, 0x94
mov dword [ebp + 0x862b80], eax
add eax, 0xfffffffc
cmp eax, 3
lea esi, [esi + 0x85df80]
mov word [esi], 0
ja case.default.0x46d52c
jmp dword [eax*4 + 0x46dfc4]
mov esi, dword [sym.imp.MSVCR71.dll_rand]
call esi
cdq
mov ecx, 0x32
idiv ecx
mov dword [ebp + 0x862b7c], edx
call esi
cdq
mov ecx, 5
idiv ecx
add dl, 2
mov byte [ebp + 0x862b75], dl
call esi
cdq
mov ecx, 0x19
idiv ecx
mov eax, dword [esp + 0x1c]
mov ecx, 0x14
mov edi, dword [ebp + 0x862b80]
mov dword [ebp + 0x862b78], edx
cdq
idiv ecx
mov ecx, edx
call fcn.0046c7d0
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
test ecx, ecx
lea ebp, [eax + eax*2]
mov dword [esp + 0x24], esi
lea ebp, [ebp*4 + 0x8ddd08]
mov dword [esp + 0x14], ecx
je 0x46d698
mov eax, ecx
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46d5b0
sub eax, edi
test eax, eax
mov dword [esp + 0x10], eax
jl 0x46d698
mov edx, dword [ebp + 8]
cmp ecx, edx
je 0x46d698
test eax, eax
je 0x46d684
jle 0x46d669
mov eax, dword [edx - 8]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
lea ebx, [edx - 8]
jle 0x46d651
mov esi, ecx
add esi, 0x20
and esi, 0xffffffe0
dec esi
test esi, esi
jle 0x46d651
cmp esi, eax
je 0x46d651
lea edx, [esi + 9]
push edx
call fcn.005354dd
lea ecx, [eax + 8]
mov dword [ebp + 8], ecx
mov dword [eax], esi
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebx + 4]
add esp, 4
test eax, eax
jle 0x46d63a
mov edi, dword [ebp + 8]
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x46d640
mov eax, dword [ebp + 8]
mov byte [eax], 0
cmp ebx, 0x8cccc8
je 0x46d651
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov dword [ecx - 4], edx
mov ecx, dword [esp + 0x14]
mov eax, edx
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x46d698
mov eax, dword [edx - 4]
test eax, eax
je 0x46d698
mov byte [edx], 0
mov ecx, dword [ebp + 8]
mov dword [ecx - 4], 0
mov edx, dword [esi]
mov dword [ebp], edx
mov esi, dword [esi + 4]
mov dword [ebp + 4], esi
mov esi, dword [esp + 0x28]
cmp esi, 0xa
jge case.default.0x46d52c
mov eax, dword [esp + 0x20]
push 0xc0008000
push 0x270f
push 0xffffffffffffffff
push ebx
push eax
call fcn.0045fc10
shl eax, 5
mov cl, byte [eax + 0x862b70]
add esp, 0x14
test cl, 2
je case.default.0x46d52c
mov dx, word [esp + 0x1c]
mov ecx, esi
imul ecx, ecx, 0x1c
inc esi
mov word [ecx + 0x864002], dx
mov dword [esp + 0x28], esi
jmp case.default.0x46d52c
mov esi, dword [sym.imp.MSVCR71.dll_rand]
call esi
cdq
mov ecx, 0x14
idiv ecx
mov dword [ebp + 0x862b7c], edx
call esi
cdq
mov ecx, 0xa
idiv ecx
add dl, 2
mov byte [ebp + 0x862b75], dl
call esi
cdq
mov ecx, 0xa
idiv ecx
mov ebx, dword [esp + 0x1c]
mov ecx, 0x14
mov edi, dword [ebp + 0x862b80]
mov eax, edx
imul eax, edx
mov dword [ebp + 0x862b78], eax
mov eax, ebx
cdq
idiv ecx
mov ecx, edx
call fcn.0046c7d0
mov esi, eax
mov edi, dword [esi + 8]
test edi, edi
lea ebx, [ebx + ebx*2]
mov dword [esp + 0x14], esi
lea ebx, [ebx*4 + 0x8ddd08]
mov dword [esp + 0x24], edi
je 0x46d98f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d774
sub eax, edx
test eax, eax
mov dword [esp + 0x18], eax
jl 0x46d98f
mov ecx, dword [ebx + 8]
cmp edi, ecx
je 0x46d98f
test eax, eax
je 0x46d97b
jle 0x46d833
add ecx, 0xfffffff8
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx]
cmp eax, ecx
jle 0x46d821
mov esi, eax
add esi, 0x20
and esi, 0xffffffe0
dec esi
test esi, esi
jle 0x46d821
cmp esi, ecx
je 0x46d821
lea edx, [esi + 9]
push edx
call fcn.005354dd
lea ecx, [eax + 8]
mov dword [ebx + 8], ecx
mov dword [eax], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 8]
mov dword [edx - 4], ecx
mov eax, dword [eax + 4]
add esp, 4
test eax, eax
jle 0x46d805
mov esi, dword [esp + 0x10]
mov edi, dword [ebx + 8]
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
add esi, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x46d80b
mov eax, dword [ebx + 8]
mov byte [eax], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x8cccc8
je 0x46d821
mov ecx, eax
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov dword [edx - 4], eax
mov ecx, dword [ebx + 8]
push eax
push edi
push ecx
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [ebx + 8]
mov ecx, dword [eax - 4]
add esp, 0xc
mov byte [ecx + eax], 0
jmp 0x46d98f
mov esi, dword [sym.imp.MSVCR71.dll_rand]
mov dword [ebp + 0x862b7c], 0x64
call esi
cdq
mov ecx, 3
idiv ecx
inc dl
mov byte [ebp + 0x862b75], dl
call esi
cdq
mov ecx, 0x14
idiv ecx
mov ebx, dword [esp + 0x1c]
mov edi, dword [ebp + 0x862b80]
mov eax, edx
imul eax, edx
mov dword [ebp + 0x862b78], eax
mov eax, ebx
cdq
idiv ecx
mov ecx, edx
call fcn.0046c7d0
mov esi, eax
mov edi, dword [esi + 8]
test edi, edi
lea ebx, [ebx + ebx*2]
mov dword [esp + 0x14], esi
lea ebx, [ebx*4 + 0x8ddd08]
mov dword [esp + 0x24], edi
je 0x46d98f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d8c2
sub eax, edx
test eax, eax
mov dword [esp + 0x18], eax
jl 0x46d98f
mov ecx, dword [ebx + 8]
cmp edi, ecx
je 0x46d98f
test eax, eax
je 0x46d97b
jle 0x46d833
add ecx, 0xfffffff8
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx]
cmp eax, ecx
jle 0x46d821
mov esi, eax
add esi, 0x20
and esi, 0xffffffe0
dec esi
test esi, esi
jle 0x46d821
cmp esi, ecx
je 0x46d821
lea edx, [esi + 9]
push edx
call fcn.005354dd
lea ecx, [eax + 8]
mov dword [ebx + 8], ecx
mov dword [eax], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 8]
mov dword [edx - 4], ecx
mov eax, dword [eax + 4]
add esp, 4
test eax, eax
jle 0x46d95f
mov esi, dword [esp + 0x10]
mov edi, dword [ebx + 8]
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
add esi, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x46d965
mov eax, dword [ebx + 8]
mov byte [eax], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x8cccc8
je 0x46d821
mov ecx, eax
jmp 0x46d818
mov eax, dword [ecx - 4]
test eax, eax
je 0x46d98f
mov byte [ecx], 0
mov edx, dword [ebx + 8]
mov dword [edx - 4], 0
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebp + 0x862b70]
mov esi, dword [esi + 4]
or eax, 0x400
mov dword [ebx + 4], esi
mov ebx, dword [esp + 0x2c]
mov dword [ebp + 0x862b70], eax
jmp case.default.0x46d52c
cmp dword [esp + 0x14], 0x2c
jge 0x46d9d4
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x46d9d4
mov dl, byte [edi + 0x862b74]
jmp 0x46d9e4
call dword [sym.imp.MSVCR71.dll_rand]
cdq
mov ecx, 3
idiv ecx
inc dl
mov word [esi], 0x32
mov esi, dword [sym.imp.MSVCR71.dll_rand]
mov byte [ebp + 0x862b74], dl
mov dword [ebp + 0x862b7c], 0x64
call esi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x46da0d
dec eax
or eax, 0xfffffff8
inc eax
add al, 2
mov byte [ebp + 0x862b75], al
call esi
cdq
mov ecx, 0x14
idiv ecx
mov eax, dword [esp + 0x1c]
movsx edi, byte [ebp + 0x862b74]
mov dword [ebp + 0x862b78], edx
cdq
idiv ecx
mov ecx, edx
call fcn.0046c7d0
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
test ecx, ecx
lea ebp, [eax + eax*2]
mov dword [esp + 0x14], esi
lea ebp, [ebp*4 + 0x8ddd08]
mov dword [esp + 0x24], ecx
je 0x46db4a
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46da62
sub eax, edi
test eax, eax
mov dword [esp + 0x10], eax
jl 0x46db4a
mov edx, dword [ebp + 8]
cmp ecx, edx
je 0x46db4a
test eax, eax
je 0x46db36
jle 0x46db1b
mov eax, dword [edx - 8]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
lea ebx, [edx - 8]
jle 0x46db03
mov esi, ecx
add esi, 0x20
and esi, 0xffffffe0
dec esi
test esi, esi
jle 0x46db03
cmp esi, eax
je 0x46db03
lea edx, [esi + 9]
push edx
call fcn.005354dd
lea ecx, [eax + 8]
mov dword [ebp + 8], ecx
mov dword [eax], esi
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebx + 4]
add esp, 4
test eax, eax
jle 0x46daec
mov edi, dword [ebp + 8]
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x46daf2
mov eax, dword [ebp + 8]
mov byte [eax], 0
cmp ebx, 0x8cccc8
je 0x46db03
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov dword [ecx - 4], edx
mov ecx, dword [esp + 0x24]
mov eax, edx
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
add esp, 0xc
mov byte [ecx + eax], 0
jmp 0x46db4a
mov eax, dword [edx - 4]
test eax, eax
je 0x46db4a
mov byte [edx], 0
mov ecx, dword [ebp + 8]
mov dword [ecx - 4], 0
mov edx, dword [esi]
mov dword [ebp], edx
mov esi, dword [esi + 4]
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x20]
imul eax, eax, 0x125
mov cl, byte [eax + ebx + 0x74fe48]
add eax, ebx
or cl, 1
mov byte [eax + 0x74fe48], cl
mov byte [eax + 0x770f10], 0xc
jmp 0x46d052
mov dword [esi + 4], eax
mov dword [esi + 8], eax
inc dword [esi + 0xc]
call dword [sym.imp.MSVCR71.dll_rand]
mov edi, eax
and edi, 0x8000000f
jns 0x46db9b
dec edi
or edi, 0xfffffff0
inc edi
mov edx, dword [esp + 0x20]
xor esi, esi
call fcn.00488730
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
inc ebp
add edi, 3
add edx, 5
add ecx, 0x1ce
cmp ebp, 0x124
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
jl 0x46d0c6
mov eax, dword [esp + 0x18]
add eax, 2
inc esi
add ebx, 0x125
cmp eax, 0x39d
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
jl 0x46d0a0
mov eax, dword [0x862b50]
lea ebx, [eax + 0x50]
mov ebp, eax
cmp dword [ebx], 0
je 0x46dca0
mov ecx, dword [0x8cc4e0]
call fcn.00552c40
mov eax, dword [0x8cc4cc]
test eax, eax
jne 0x46dc92
mov edx, dword [0x8cc4c8]
mov eax, dword [edx + 0xc]
test eax, eax
jbe 0x46dc92
mov ecx, dword [0x8cc4e0]
push 0
call fcn.00552ba0
test eax, eax
jne 0x46dc92
mov ecx, dword [0x8cc4c8]
mov eax, dword [ecx + 4]
mov edx, dword [eax]
xor edi, edi
cmp edx, edi
mov esi, ecx
mov dword [ecx + 4], edx
je 0x46dc60
mov dword [edx + 4], edi
jmp 0x46dc63
mov dword [ecx + 8], edi
mov edx, dword [ecx]
mov edi, dword [eax + 8]
push eax
call dword [edx + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [0x8cc4e0]
dec eax
mov dword [esi + 0xc], eax
mov dword [0x8cc4cc], edi
mov eax, dword [0x8cc4cc]
add eax, 8
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
call fcn.00546910
mov eax, dword [0x8cc4cc]
cmp dword [ebx], 0
jne 0x46dc13
mov eax, dword [ebp + 0xbc]
test eax, eax
mov ebp, 1
je 0x46dcbc
cmp dword [0x7283a0], ebp
jg 0x46dcbc
call fcn.004bb170
mov ecx, dword [0x862b40]
push ebp
call fcn.004bbbd0
mov ecx, dword [0x8ec008]
mov dword [0x862b54], eax
mov dword [eax + 0x18], ecx
mov ecx, dword [0x862b44]
push ebp
call fcn.004bbbd0
mov edx, dword [0x8ec008]
mov dword [0x862b58], eax
mov dword [eax + 0x18], edx
mov ecx, dword [0x862b48]
push ebp
call fcn.004bbbd0
mov ecx, dword [0x8ec008]
mov dword [0x862b5c], eax
mov dword [eax + 0x18], ecx
mov ecx, dword [0x862b4c]
push ebp
call fcn.004bbbd0
mov edx, dword [0x8ec008]
mov dword [0x862b60], eax
mov dword [eax + 0x18], edx
mov ecx, dword [0x862b50]
push ebp
call fcn.004bbbd0
mov ecx, dword [0x8ec008]
mov dword [0x862b64], eax
mov dword [eax + 0x18], ecx
mov edi, 0x8cda18
mov eax, dword [edi + 0x50]
test eax, eax
je 0x46dde3
mov edi, edi
mov ecx, dword [0x8cc4e0]
call fcn.00552c40
mov eax, dword [0x8cc4cc]
test eax, eax
jne 0x46ddd3
mov edx, dword [0x8cc4c8]
mov eax, dword [edx + 0xc]
test eax, eax
jbe 0x46ddd3
mov ecx, dword [0x8cc4e0]
push 0
call fcn.00552ba0
test eax, eax
jne 0x46ddd3
mov ecx, dword [0x8cc4c8]
mov eax, dword [ecx + 4]
mov edx, dword [eax]
xor ebx, ebx
cmp edx, ebx
mov esi, ecx
mov dword [ecx + 4], edx
je 0x46dda1
mov dword [edx + 4], ebx
jmp 0x46dda4
mov dword [ecx + 8], ebx
mov edx, dword [ecx]
mov ebx, dword [eax + 8]
push eax
call dword [edx + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [0x8cc4e0]
dec eax
mov dword [esi + 0xc], eax
mov dword [0x8cc4cc], ebx
mov eax, dword [0x8cc4cc]
add eax, 8
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
call fcn.00546910
mov eax, dword [0x8cc4cc]
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x46dd50
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x46ddfc
cmp dword [0x7283a0], ebp
jg 0x46ddfc
call fcn.004bb170
jmp 0x46ddff
mov eax, dword [edi + 0x1c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 7
push str.D_Crew_
push eax
call fcn.004dc5c0
mov eax, dword [edi + 0x50]
add esp, 0x14
test eax, eax
je 0x46deb3
mov edi, edi
mov ecx, dword [0x8cc4e0]
call fcn.00552c40
mov eax, dword [0x8cc4cc]
test eax, eax
jne 0x46dea3
mov ecx, dword [0x8cc4c8]
mov eax, dword [ecx + 0xc]
test eax, eax
jbe 0x46dea3
mov ecx, dword [0x8cc4e0]
push 0
call fcn.00552ba0
test eax, eax
jne 0x46dea3
mov ecx, dword [0x8cc4c8]
mov eax, dword [ecx + 4]
mov edx, dword [eax]
xor ebx, ebx
cmp edx, ebx
mov esi, ecx
mov dword [ecx + 4], edx
je 0x46de71
mov dword [edx + 4], ebx
jmp 0x46de74
mov dword [ecx + 8], ebx
mov edx, dword [ecx]
mov ebx, dword [eax + 8]
push eax
call dword [edx + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [0x8cc4e0]
dec eax
mov dword [esi + 0xc], eax
mov dword [0x8cc4cc], ebx
mov eax, dword [0x8cc4cc]
add eax, 8
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
call fcn.00546910
mov eax, dword [0x8cc4cc]
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x46de20
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x46decc
cmp dword [0x7283a0], ebp
jg 0x46decc
call fcn.004bb170
jmp 0x46decf
mov eax, dword [edi + 0x1c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa
push str.gunport_p_
push eax
call fcn.004dc5c0
add esp, 0x14
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa
push str.gunport_s_
mov eax, edi
call fcn.004bb170
push eax
call fcn.004dc5c0
add esp, 0x14
push 0xffffffffffffffff
push 0xffffffffffffffff
push 9
push str.cannon_p_
mov eax, edi
call fcn.004bb170
push eax
call fcn.004dc5c0
add esp, 0x14
push 0xffffffffffffffff
push 0xffffffffffffffff
push 9
push str.cannon_s_
mov eax, edi
call fcn.004bb170
push eax
call fcn.004dc5c0
add edi, 0xc0
add esp, 0x14
cmp edi, 0x8ce018
jle 0x46dd43
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x6f7814
call fcn.004f64c0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x6f7864
call fcn.004f24a0
mov eax, dword [esp + 0x68]
add eax, 0xfffffff8
je 0x46df81
cmp eax, 0x8cccc8
je 0x46df81
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x80]
push ecx
mov dword [esp + 0x6c], 0x8cccd0
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret