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

Disassembly:
push 0xffffffffffffffff
push 0x51500e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
mov ebp, dword [esp + 0x90]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x2c], esp
xor ebx, ebx
mov esi, esp
push ebp
mov dword [esp + 0x90], ebx
mov dword [esp + 0x30], ebp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x870]
add esp, 4
call fcn.0044e550
test al, al
jne 0x4a441a
push 0x150
call fcn.004fd765
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov byte [esp + 0x88], 1
je 0x4a43be
mov ecx, eax
call fcn.004930c0
mov esi, eax
jmp 0x4a43c0
xor esi, esi
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x88], 0
mov dword [esi + 0x128], edi
call dword [edx + 0x44]
mov ecx, dword [edi + 0x80]
mov eax, dword [edi + 0x84]
mov dword [esp + 0x48], ebx
sub esp, 0x10
xor edx, edx
mov ebx, esp
mov dword [ebx], edx
mov edx, dword [esp + 0x58]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, esi
mov dword [ebx + 0xc], eax
call fcn.00451860
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x8c]
push esi
push eax
call fcn.004a3d90
jmp 0x4a4532
push 0x20
add edi, 0x8c
push ebx
mov ecx, edi
call fcn.00498990
push ecx
mov dword [esp + 0x24], esp
mov esi, esp
push ebp
call fcn.00401a40
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esi], eax
call fcn.00477bb0
mov byte [esp + 0x88], 2
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Texture_contains__d_skins.
mov byte [esp + 0x94], 3
call fcn.00402110
mov edx, dword [0x55cd0c]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004a7680
add esp, 0x10
mov eax, dword [eax]
push eax
push str.Texture::loadSkins
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._s__:__s
mov byte [esp + 0x98], 4
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x88], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a44f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x60], ebx
mov dword [esp + 0x14], ebx
jg 0x4a4570
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x88], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a4521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x54]
mov byte [esp + 0x88], 0
call fcn.00477520
mov dword [esp + 0x88], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a4555
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 4
xor ebx, ebx
nop
mov eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Skin__d
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
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]
mov esi, dword [esp + 0x10]
lea ecx, [eax - 0x10]
add esi, 0xfffffff0
cmp ecx, esi
mov byte [esp + 0x88], 5
je 0x4a45fa
mov edx, dword [esi + 0xc]
cmp edx, ebx
lea edi, [esi + 0xc]
jge 0x4a45d4
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401ee0
jmp 0x4a45fa
push ecx
call fcn.00401a40
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4a45f3
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x88], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a4620
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.left
call fcn.00402110
mov ebp, dword [esp + 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
add ebp, 0xfffffff0
mov byte [esp + 0x90], 6
mov dword [esp + 0x38], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
lea ecx, [ebp + 0xc]
jl 0x4a466b
cmp eax, dword [ebp]
jne 0x4a466b
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4a469d
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4a4b11
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
lea ecx, [esp + 0x5c]
mov dword [ebx], eax
mov byte [esp + 0x90], 3
call fcn.00477a90
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x53832c
mov dword [esp + 0x3c], eax
call fcn.00402110
push ecx
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov byte [esp + 0x90], 7
mov dword [esp + 0x34], esp
mov ebx, esp
call dword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
lea edx, [ebp + 0xc]
jl 0x4a46fb
cmp eax, dword [ebp]
jne 0x4a46fb
mov eax, ebp
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4a472d
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4a4b11
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
lea ecx, [esp + 0x5c]
mov dword [ebx], eax
mov byte [esp + 0x90], 3
call fcn.00477a90
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.width
mov dword [esp + 0x40], eax
call fcn.00402110
push ecx
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov byte [esp + 0x90], 8
mov dword [esp + 0x34], esp
mov ebx, esp
call dword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
lea edx, [ebp + 0xc]
jl 0x4a478b
cmp eax, dword [ebp]
jne 0x4a478b
mov eax, ebp
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4a47bd
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4a4b11
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
lea ecx, [esp + 0x5c]
mov dword [ebx], eax
mov byte [esp + 0x90], 3
call fcn.00477a90
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.height
mov dword [esp + 0x44], eax
call fcn.00402110
push ecx
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov byte [esp + 0x90], 9
mov dword [esp + 0x34], esp
mov ebx, esp
call dword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
lea edx, [ebp + 0xc]
jl 0x4a481b
cmp eax, dword [ebp]
jne 0x4a481b
mov eax, ebp
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4a484d
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4a4b11
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
lea ecx, [esp + 0x5c]
mov dword [ebx], eax
mov byte [esp + 0x90], 3
call fcn.00477a90
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.origin_adjust_x
mov dword [esp + 0x48], eax
call fcn.00402110
push ecx
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov byte [esp + 0x90], 0xa
mov dword [esp + 0x34], esp
mov ebx, esp
call dword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
lea edx, [ebp + 0xc]
jl 0x4a48ab
cmp eax, dword [ebp]
jne 0x4a48ab
mov eax, ebp
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4a48dd
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4a4b11
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
lea ecx, [esp + 0x5c]
mov dword [ebx], eax
mov byte [esp + 0x90], 3
call fcn.00477790
test al, al
je 0x4a493a
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.origin_adjust_x
call fcn.00402110
push ecx
mov dword [esp + 0x34], esp
mov esi, esp
push ebp
mov byte [esp + 0x94], 0xb
call fcn.00401a40
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esi], eax
mov byte [esp + 0x90], 3
call fcn.00477a90
mov dword [esp + 0x18], eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.origin_adjust_y
call fcn.00402110
push ecx
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov byte [esp + 0x90], 0xc
mov dword [esp + 0x34], esp
mov ebx, esp
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
lea ecx, [ebp + 0xc]
jl 0x4a497e
cmp eax, dword [ebp]
jne 0x4a497e
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4a49b0
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x4a4b11
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
lea ecx, [esp + 0x5c]
mov dword [ebx], eax
mov byte [esp + 0x90], 3
call fcn.00477790
test al, al
je 0x4a4a0d
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.origin_adjust_y
call fcn.00402110
push ecx
mov dword [esp + 0x34], esp
mov esi, esp
push ebp
mov byte [esp + 0x94], 0xd
call fcn.00401a40
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esi], eax
mov byte [esp + 0x90], 3
call fcn.00477a90
mov dword [esp + 0x1c], eax
push 0x150
call fcn.004fd765
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x88], 0xe
je 0x4a4a35
mov ecx, eax
call fcn.004930c0
mov esi, eax
jmp 0x4a4a37
xor esi, esi
mov edi, dword [esp + 0x24]
mov eax, dword [esi]
mov ecx, esi
mov byte [esp + 0x88], 3
mov dword [esi + 0x128], edi
call dword [eax + 0x44]
mov ecx, dword [esp + 0x3c]
and ecx, 0x80000001
jns 0x4a4a61
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x4a4a72
fld dword [esi + 0x78]
fsub qword [0x51f670]
fstp dword [esi + 0x78]
mov edx, dword [esp + 0x40]
and edx, 0x80000001
jns 0x4a4a83
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x4a4a94
fld dword [esi + 0x7c]
fadd qword [0x51f670]
fstp dword [esi + 0x7c]
fild dword [esp + 0x18]
sub esp, 0x10
mov dword [esp + 0x40], esp
fsubr dword [esi + 0x78]
fstp dword [esi + 0x78]
fild dword [esp + 0x2c]
fadd dword [esi + 0x7c]
fstp dword [esi + 0x7c]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
add edx, ecx
add ebx, eax
mov dword [esp + 0x50], edx
mov eax, esp
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x54], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, esi
call fcn.00451860
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x8c]
push esi
push eax
call fcn.004a3d90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4a456d
mov ebp, dword [esp + 0x28]
jmp 0x4a44fb
call fcn.00401670
int3