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

Disassembly:
sub esp, 0x124
mov eax, 0x32
push ebx
push ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
push esi
lea eax, [esp + 0x70]
push edi
mov edi, dword [esp + 0x138]
mov ebp, ecx
push eax
push str.Size
lea ecx, [esp + 0x44]
push 0x7c0dbc
mov esi, 1
push ecx
mov ecx, edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
call fcn.0050d050
mov edx, dword [eax]
mov dword [esp + 0x84], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x88], ecx
mov ecx, ebp
mov edx, dword [eax + 8]
mov dword [esp + 0x8c], edx
mov edx, dword [ebp]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x90], eax
call dword [edx + 0x60]
mov eax, dword [ebp]
xor ebx, ebx
push esi
push ebx
lea ecx, [esp + 0x8c]
push esi
push ecx
mov ecx, ebp
call dword [eax + 0x70]
push ebx
push str.Level
push 0x7c0dbc
mov ecx, edi
call fcn.0050caf0
mov esi, dword [0xa3ab18]
lea edx, [esp + 0x94]
push 0x20
push edx
push str.Clear
push str.Fill
push 0x7c0dbc
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.0050dca0
lea eax, [esp + 0x94]
push str.Water
push eax
call fcn.0076d4b0
add esp, 8
test eax, eax
jne 0x49cd11
mov esi, dword [0xa3a198]
mov ecx, ebp
call fcn.005571f0
mov ecx, ebp
call fcn.00557130
cmp eax, ebx
je 0x49cd49
mov cl, byte [esp + 0x34]
mov dl, byte [eax + 0x11b]
add dl, cl
mov ecx, ebp
mov dword [eax + 0x38], esi
mov byte [eax + 0x11a], bl
mov byte [eax + 0x11b], dl
call fcn.00557130
cmp eax, ebx
jne 0x49cd23
push ebx
push str.Theater
push 0x7c0dbc
mov ecx, edi
call fcn.0046a8b0
mov edx, dword [0xa255a0]
mov dword [edx + 0x838], eax
mov ecx, dword [0xa255a0]
mov eax, dword [ebp]
mov edx, dword [ecx + 0x838]
mov ecx, ebp
push edx
call dword [eax + 0x18]
push 0x3f
mov ecx, 0xa255a8
call fcn.006682c0
call fcn.004821e0
mov eax, dword [0xa255a0]
mov ecx, dword [eax + 0x838]
mov esi, dword [eax + 0x214]
call fcn.006da5d0
mov eax, dword [0xa255a0]
mov ecx, dword [eax + 0x838]
mov eax, dword [0x7c396c]
cmp ecx, eax
je 0x49cdc0
mov dl, 1
call fcn.00527980
jmp 0x49cdc5
call fcn.00529760
mov ecx, dword [0xa255a0]
add esi, 0x2710
mov dword [ecx + 0x214], esi
mov edx, dword [0xa255a0]
mov ecx, dword [edx + 0x838]
call fcn.005d4e90
mov eax, dword [0xa255a0]
mov ecx, dword [eax + 0x838]
call fcn.00458280
mov ecx, dword [0xa255a0]
mov ecx, dword [ecx + 0x838]
call fcn.00425230
mov edx, dword [0xa255a0]
mov ecx, dword [edx + 0x838]
call fcn.0067d590
mov eax, dword [0xa255a0]
mov ecx, dword [eax + 0x838]
call fcn.007052b0
push 0x41
mov ecx, 0xa255a8
call fcn.006682c0
call fcn.004821e0
mov ecx, dword [0xa255a0]
push edi
call fcn.0065a0e0
mov ecx, dword [0xa255a0]
mov edx, dword [ecx + 0x20c]
push edx
call fcn.0065a0a0
test al, al
jne 0x49ce91
mov eax, dword [ebp + 0xf4]
mov ecx, dword [ebp + 0xf0]
add eax, ecx
mov ecx, dword [0xa255a0]
cdq
sub eax, edx
mov edx, dword [ecx + 0x20c]
sar eax, 1
mov word [esp + 0x38], ax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x38]
push eax
push edx
call fcn.0065a260
mov ecx, dword [0xa255a0]
cmp byte [ecx + 0x1238], bl
je 0x49cea7
mov eax, dword [ecx + 0x210]
jmp 0x49cead
mov eax, dword [ecx + 0x20c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00659fe0
mov ecx, dword [0xa255a0]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov dword [ecx + 0x2220], eax
mov ecx, dword [0xa255a0]
movsx eax, ax
mov edx, dword [ecx + 0x2220]
mov dword [ecx + 0x221c], edx
mov ecx, dword [0xa255a0]
shl eax, 8
mov edx, dword [ecx + 0x221c]
add eax, 0x80
mov dword [ecx + 0x2218], edx
mov ecx, dword [0xa255a0]
mov edx, dword [ecx + 0x2218]
mov dword [ecx + 0x2214], edx
lea edx, [esp + 0x68]
movsx ecx, word [esp + 0x36]
shl ecx, 8
add ecx, 0x80
push edx
mov dword [esp + 0x70], ecx
mov ecx, dword [0x821c8c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ebx
call fcn.0069bba0
push str.CellTags
mov ecx, edi
call fcn.0050be00
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
jle 0x49d0b4
mov eax, dword [esp + 0x38]
mov ecx, edi
push eax
push str.CellTags
call fcn.0050c100
lea ecx, [esp + 0xb4]
push 0x80
mov esi, eax
push ecx
push 0x824884
push esi
push str.CellTags
mov ecx, edi
call fcn.0050dca0
test eax, eax
je 0x49cf99
lea ecx, [esp + 0xb4]
call fcn.006aa220
mov dword [esp + 0x34], eax
jmp 0x49cf9d
mov dword [esp + 0x34], ebx
push esi
call fcn.0076e38d
mov ecx, eax
mov eax, dword [0xa28944]
add esp, 4
cmp eax, 4
jl 0x49cfe1
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov eax, 0x10624dd3
mov word [esp + 0x60], dx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov word [esp + 0x62], dx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x58], ecx
jmp 0x49d00d
mov edx, ecx
and edx, 0x8000007f
jns 0x49cff0
dec edx
or edx, 0xffffff80
inc edx
mov eax, ecx
mov word [esp + 0x5c], dx
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
mov word [esp + 0x5e], ax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x49d09f
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebp
call fcn.005453b0
cmp dword [eax + 0x3c], ebx
jne 0x49d09f
mov ecx, esi
call fcn.006a9230
mov esi, eax
cmp esi, ebx
je 0x49d09f
mov edx, dword [esp + 0x58]
mov ecx, esi
push edx
call fcn.006a9490
lea eax, [esp + 0x58]
push esi
push eax
mov ecx, ebp
call fcn.005453b0
mov ecx, eax
call fcn.0047a060
mov eax, dword [ebp + 0x1160]
mov ecx, dword [ebp + 0x1168]
lea esi, [ebp + 0x1158]
cmp ecx, eax
jl 0x49d08c
cmp byte [esi + 0xd], bl
jne 0x49d076
cmp eax, ebx
jne 0x49d09f
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
jle 0x49d09f
mov edx, dword [esi]
add eax, ecx
push ebx
push eax
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x49d09f
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x49cf51
push 0x43
mov ecx, 0xa255a8
call fcn.006682c0
call fcn.004821e0
push 0x190
push 0x280
lea ecx, [esp + 0x18]
call fcn.0049e970
push 0x7d000
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], vtable.XSurface.0
mov dword [esp + 0x28], 2
call fcn.00438140
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
imul esi, dword [esp + 0x20]
imul esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.BSurface.0
call dword [0x785f68]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [edx + 0x74]
mov eax, dword [str.IsoMapPack]
push esi
push ebp
push eax
mov ecx, edi
call fcn.0050c3f0
mov ebp, eax
cmp ebp, ebx
jle 0x49d1c4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
call dword [edx + 0x70]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x74]
mov ecx, dword [esp + 0x30]
push ebp
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], vtable.Straw.0
call fcn.00438140
lea edx, [esp + 0x3c]
mov ecx, 0x81a800
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], vtable.BufferStraw.0
call fcn.0054b000
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
dec eax
mov dword [esp + 0x1c], eax
call fcn.00438290
lea ecx, [esp + 0x3c]
call fcn.00690560
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x70]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [edx + 0x74]
mov eax, dword [str.IsoMapPack2]
push esi
push ebp
push eax
mov ecx, edi
call fcn.0050c3f0
mov ebp, eax
cmp ebp, ebx
jle 0x49d277
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
call dword [edx + 0x70]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x74]
mov ecx, dword [esp + 0x30]
push ebp
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], vtable.Straw.0
call fcn.00438140
lea edx, [esp + 0x3c]
mov ecx, 0x81a800
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], vtable.BufferStraw.0
call fcn.0054b1e0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
dec eax
mov dword [esp + 0x1c], eax
call fcn.00438290
lea ecx, [esp + 0x3c]
call fcn.00690560
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x70]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [edx + 0x74]
mov eax, dword [str.IsoMapPack3]
push esi
push ebp
push eax
mov ecx, edi
call fcn.0050c3f0
mov ebp, eax
cmp ebp, ebx
jle 0x49d32a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
call dword [edx + 0x70]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x74]
mov ecx, dword [esp + 0x30]
push ebp
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], vtable.Straw.0
call fcn.00438140
lea edx, [esp + 0x3c]
mov ecx, 0x81a800
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], vtable.BufferStraw.0
call fcn.0054b300
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
dec eax
mov dword [esp + 0x1c], eax
call fcn.00438290
lea ecx, [esp + 0x3c]
call fcn.00690560
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x70]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [edx + 0x74]
mov eax, dword [str.IsoMapPack4]
push esi
push ebp
push eax
mov ecx, edi
call fcn.0050c3f0
mov ebp, eax
cmp ebp, ebx
jle 0x49d3dd
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
call dword [edx + 0x70]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x74]
mov ecx, dword [esp + 0x30]
push ebp
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], vtable.Straw.0
call fcn.00438140
lea edx, [esp + 0x3c]
mov ecx, 0x81a800
push edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], vtable.BufferStraw.0
call fcn.0054b400
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
dec eax
mov dword [esp + 0x1c], eax
call fcn.00438290
lea ecx, [esp + 0x3c]
call fcn.00690560
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x70]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [edx + 0x74]
mov eax, dword [str.IsoMapPack5]
push esi
push ebp
push eax
mov ecx, edi
call fcn.0050c3f0
mov esi, eax
cmp esi, ebx
jle 0x49d488
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
call dword [edx + 0x70]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax + 0x74]
push esi
push ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], vtable.Straw.0
call fcn.00438140
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebx
push ecx
mov ecx, 0x81a800
mov dword [esp + 0x40], vtable.BufferStraw.0
call fcn.0054b520
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
dec eax
mov dword [esp + 0x1c], eax
call fcn.00438290
lea ecx, [esp + 0x3c]
call fcn.00690560
mov edx, dword [esp + 0x1c]
push 0x44
dec edx
mov ecx, 0xa255a8
mov dword [esp + 0x20], edx
call fcn.006682c0
call fcn.004821e0
cmp byte [0xa28933], bl
jne 0x49d4b2
cmp byte [0xa28925], bl
je 0x49d4b7
mov ebx, 1
mov edx, dword [0xa255a0]
mov cl, bl
mov dl, byte [edx + 0x223b]
call fcn.005293f0
push 0x45
mov ecx, 0xa255a8
call fcn.006682c0
call fcn.004821e0
mov eax, dword [esp + 0x64]
mov ecx, edi
lea esi, [eax + 0xf8]
add eax, 0xe8
push eax
push str.LocalSize
lea eax, [esp + 0x44]
push 0x7c0dbc
push eax
call fcn.0050d050
mov edx, dword [eax]
mov ecx, esi
push esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, 0x81a800
call fcn.00627d70
mov ecx, 0x81a800
call fcn.00567540
mov ecx, dword [0xa255a0]
mov edx, dword [ecx + 0x838]
lea ecx, [esp + 0x24]
mov dword [0x7c396c], edx
call fcn.00438290
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4