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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x38], edi
xor esi, esi
mov dword [esp + 0x11c], esi
call fcn.004ab180
lea ecx, [edi + 0x8c]
mov dword [edi], 0x538170
mov dword [edi + 0x20], 0x538160
mov dword [edi + 0x78], esi
mov dword [edi + 0x7c], esi
mov dword [edi + 0x80], esi
mov dword [edi + 0x84], esi
mov dword [edi + 0x88], esi
call fcn.004a3d30
push 0x78
mov byte [esp + 0x120], 2
mov byte [edi + 0xa0], 1
mov dword [edi + 0x120], esi
mov dword [edi + 0x124], esi
mov dword [edi + 0x128], esi
mov dword [edi + 0x12c], esi
mov dword [edi + 0x130], 1
call fcn.004fd765
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, esi
mov byte [esp + 0x11c], 3
je 0x4a53ac
mov ecx, eax
call fcn.004ab180
jmp 0x4a53ae
xor eax, eax
push eax
mov ecx, edi
mov byte [esp + 0x120], 2
mov dword [edi + 0x120], eax
call fcn.00403010
mov ebx, dword [ebp + 8]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Loading_texture__s...
call fcn.00402110
mov ecx, dword [0x55cd0c]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.004a7680
add esp, 0x10
mov edx, dword [eax]
push edx
push str.Texture::Texture
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str._s__:__s
mov byte [esp + 0x12c], 4
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x11c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a5448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push ebx
mov dword [esp + 0x34], ebx
call fcn.00401a40
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x9c]
mov dword [esi], eax
call fcn.00477330
mov al, byte [esp + 0xa0]
mov byte [edi + 0xa0], al
test byte [ebp + 0xc], 1
mov byte [esp + 0x11c], 5
je 0x4a5494
mov byte [edi + 0xa0], 1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a54a3
mov eax, 2
mov dword [ebp + 0x10], eax
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
mov ecx, edi
call fcn.004a3f60
mov eax, dword [edi + 0x128]
cmp eax, dword [esp + 0xa4]
jl 0x4a5511
mov ecx, dword [edi + 0x12c]
cmp ecx, dword [esp + 0xa8]
jl 0x4a5511
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push str..ini
lea eax, [ebp + 8]
push eax
push edx
call fcn.0041b800
add esp, 0xc
mov ecx, edi
call fcn.004a4330
push 0
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, edi
call fcn.004a4b20
jmp 0x4a5e99
test byte [ebp + 0xc], 2
je 0x4a557d
jmp 0x4a5520
mov edx, dword [esp + 0xa4]
cmp dword [edi + 0x128], edx
jl 0x4a553e
mov eax, dword [esp + 0xa8]
cmp dword [edi + 0x12c], eax
jge 0x4a555a
lea ecx, [esp + 0x94]
call fcn.004768d0
mov ecx, dword [edi + 0x130]
shl ecx, 1
mov dword [edi + 0x130], ecx
jmp 0x4a5520
mov eax, dword [edi + 0x130]
mov edx, dword [edi + 0x128]
mov ecx, dword [edi + 0x12c]
imul edx, eax
imul ecx, eax
mov dword [edi + 0x78], edx
mov dword [edi + 0x7c], ecx
jmp 0x4a54d9
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push str..ini
lea eax, [ebp + 8]
push eax
push edx
call fcn.0041b800
add esp, 0xc
mov ecx, edi
call fcn.004a4330
mov ecx, dword [esp + 0xa4]
mov ebx, dword [edi + 0x128]
mov edx, dword [esp + 0xa8]
mov esi, dword [edi + 0x12c]
cmp ecx, ebx
setle al
cmp edx, esi
setle bl
test bl, bl
mov byte [esp + 0x1f], al
mov byte [esp + 0x33], bl
mov ecx, 0x5245f0
jne 0x4a55d7
mov ecx, 0x52f278
test al, al
mov eax, 0x5245f0
jne 0x4a55e5
mov eax, 0x52f1dc
push ecx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Mosaic_axis:__s__s
call fcn.00402110
mov ecx, dword [0x55cd0c]
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.004a7680
add esp, 0x14
mov edx, dword [eax]
push edx
push str.Texture::Texture
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str._s__:__s
mov byte [esp + 0x12c], 6
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x11c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a5667
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x64], eax
mov al, byte [esp + 0x1f]
test al, al
mov dword [esp + 0x68], ecx
je 0x4a5691
mov edx, dword [edi + 0x128]
mov dword [esp + 0x24], edx
jmp 0x4a569e
mov eax, dword [edi + 0x128]
sub eax, 2
mov dword [esp + 0x24], eax
test bl, bl
mov eax, dword [edi + 0x12c]
jne 0x4a56ab
sub eax, 2
test ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], eax
jle 0x4a5a3f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x68]
cmp ecx, eax
mov dword [esp + 0x4c], 0
jle 0x4a56e3
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x4a5a1d
mov al, byte [esp + 0x1f]
xor ecx, ecx
test bl, bl
sete cl
xor edx, edx
test al, al
sete dl
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], edx
lea esp, [esp]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jle 0x4a5722
mov eax, ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x3c]
push ecx
xor esi, esi
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esp + 0xc], esi
mov eax, 1
jge 0x4a5795
mov dword [esp + 0xc], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x44], eax
cmp dword [esp + 0x10], esi
jge 0x4a57ac
mov ebx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x14], ecx
jle 0x4a57c1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x18], ecx
jle 0x4a57d6
mov dword [esp + 0x90], eax
mov dword [esp + 0x18], ecx
push 0x138
call fcn.004fd765
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov byte [esp + 0x11c], 7
je 0x4a5810
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x12c]
push ecx
mov ecx, dword [edi + 0x128]
push edx
push ecx
mov ecx, eax
call fcn.004a5190
mov esi, eax
jmp 0x4a5812
xor esi, esi
mov ecx, dword [edi + 0x120]
push esi
mov byte [esp + 0x120], 5
call fcn.00403010
mov dl, byte [edi + 0xa0]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
mov byte [esi + 0xa0], dl
push ecx
lea edx, [esp + 0x9c]
push edx
mov ecx, esi
call fcn.004a4b20
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4a58b3
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
dec eax
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xc]
lea ecx, [eax + 1]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc4]
push ecx
mov dword [esp + 0xf8], edx
lea edx, [esp + 0xf4]
mov dword [esp + 0x100], eax
push edx
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
mov dword [esp + 0xd4], ebx
call fcn.004a4b20
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4a5917
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xc]
lea eax, [ebx - 1]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
lea ecx, [eax + 1]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0xe4], edx
lea edx, [esp + 0xe4]
mov dword [esp + 0xec], eax
push edx
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.004a4b20
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4a5986
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, eax
sub ecx, edx
add ecx, dword [esp + 0x44]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x10]
lea edx, [eax - 1]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x108], eax
mov dword [esp + 0x104], ecx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x104]
mov dword [esp + 0x110], edx
push ecx
lea edx, [esp + 0x9c]
push edx
mov ecx, esi
mov dword [esp + 0xc4], ebx
call fcn.004a4b20
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4a59f7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x44]
add eax, ebx
mov dword [esp + 0xc0], eax
lea eax, [ecx - 1]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xbc]
push ecx
mov dword [esp + 0xd0], edx
lea edx, [esp + 0xd0]
mov dword [esp + 0xd8], eax
push edx
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.004a4b20
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
add eax, ecx
add edx, ecx
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
jl 0x4a5710
mov bl, byte [esp + 0x33]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
add eax, ecx
add edx, ecx
cmp eax, dword [esp + 0x68]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], edx
jl 0x4a56c3
mov ecx, dword [edi + 0x120]
call fcn.00402fb0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Created__d_subTextures.
call fcn.00402110
mov edx, dword [0x55cd0c]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.004a7680
add esp, 0x10
mov eax, dword [eax]
push eax
push str.Texture::Texture
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str._s__:__s
mov byte [esp + 0x12c], 8
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x11c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a5acc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xcc]
call fcn.004a3d30
mov eax, dword [edi + 0x94]
test eax, eax
mov byte [esp + 0x11c], 9
mov dword [esp + 0x70], 0
jle 0x4a5e11
jmp 0x4a5b00
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x90]
mov edx, dword [esp + 0x70]
mov eax, dword [ecx + edx*4]
mov dword [esp + 0x2c], eax
add eax, 0x13c
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov dword [esp + 0x5c], eax
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
push 0x138
mov ebx, eax
mov eax, ecx
cdq
idiv dword [esp + 0x38]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x7c], eax
lea eax, [esi - 1]
cdq
idiv dword [esp + 0x28]
mov ecx, eax
lea eax, [edi - 1]
cdq
idiv dword [esp + 0x38]
mov edx, dword [esp + 0x7c]
sub ecx, ebx
inc ecx
mov edi, ecx
mov dword [esp + 0x24], edi
sub eax, edx
inc eax
mov esi, eax
mov dword [esp + 0xc8], esi
call fcn.004fd765
add esp, 4
mov dword [esp + 0x7c], eax
test eax, eax
mov byte [esp + 0x11c], 0xa
je 0x4a5b9e
mov ecx, eax
call fcn.00493710
jmp 0x4a5ba0
xor eax, eax
push esi
push edi
mov ecx, eax
mov dword [esp + 0x74], eax
mov byte [esp + 0x124], 9
call fcn.00493660
test esi, esi
mov dword [esp + 0x40], 0
jle 0x4a5dbc
mov ecx, dword [esp + 0x34]
mov eax, ecx
neg eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x78]
imul eax, ecx
neg eax
mov dword [esp + 0x74], eax
mov edi, edi
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x4a5d96
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
imul ebx, esi
mov ecx, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0xbc], eax
mov eax, esi
neg eax
mov dword [esp + 0xb4], eax
neg ebx
jmp 0x4a5c20
mov esi, dword [esp + 0x24]
lea ecx, [ecx]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x6c]
push ebx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0xc]
test eax, eax
jge 0x4a5c5f
xor eax, eax
mov dword [esp + 0xc], eax
cmp eax, esi
jle 0x4a5c67
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x14]
test eax, eax
jge 0x4a5c75
xor eax, eax
mov dword [esp + 0x14], eax
cmp eax, esi
jle 0x4a5c7d
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
test eax, eax
jge 0x4a5c8b
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jle 0x4a5c97
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x4a5ca5
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, ecx
jle 0x4a5cad
mov dword [esp + 0x18], ecx
push 1
push 1
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x150
call fcn.004fd765
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x11c], 0xb
je 0x4a5ce4
mov ecx, eax
call fcn.004930c0
mov esi, eax
jmp 0x4a5ce6
xor esi, esi
mov eax, dword [esp + 0xa4]
dec eax
cdq
idiv dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x11c], 9
inc eax
imul eax, dword [esp + 0xbc]
add eax, edi
add eax, edx
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x120]
call fcn.00402fd0
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x128], eax
call dword [edx + 0x44]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00451860
mov eax, dword [esi + 0x128]
lea ecx, [eax + 0x8c]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.004a3d90
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x118]
imul ecx, dword [esp + 0x40]
mov edx, dword [eax + 0x128]
mov eax, dword [esp + 0x20]
add ecx, edi
mov dword [edx + ecx*4], esi
mov ecx, dword [esp + 0xb4]
inc edi
add ebx, ecx
cmp edi, eax
jl 0x4a5c19
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0xc4]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x74], edx
jl 0x4a5be0
mov esi, dword [esp + 0x6c]
mov ecx, esi
call fcn.004937c0
mov edx, dword [esp + 0x2c]
add edx, 0x78
mov ecx, dword [edx]
lea eax, [esi + 0x78]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov eax, dword [esp + 0xd4]
push esi
push eax
lea ecx, [esp + 0xd4]
call fcn.004a3d90
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x94]
inc eax
cmp eax, edx
mov dword [esp + 0x70], eax
jl 0x4a5b00
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 0x94]
xor esi, esi
test eax, eax
jle 0x4a5e4d
mov edx, dword [edi + 0x90]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x4a5e42
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [edi + 0x90]
mov dword [ecx + esi*4], 0
mov eax, dword [edi + 0x94]
inc esi
cmp esi, eax
jl 0x4a5e21
push 0xffffffffffffffff
lea esi, [edi + 0x8c]
push 0
mov ecx, esi
call fcn.00498990
lea edx, [esp + 0xcc]
push edx
mov ecx, esi
call fcn.004a3dd0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xd4]
call fcn.00498990
lea ecx, [esp + 0xcc]
mov byte [esp + 0x11c], 5
call fcn.004a3d50
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x94]
mov byte [esp + 0x11c], 2
call fcn.00476500
mov dword [esp + 0x11c], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a5ecf
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x114]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc