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

Disassembly:
push 0xffffffffffffffff
push 0x4ba6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
call edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x34], edi
call edx
mov ebp, dword [eax + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], vtable.Dimension.0
call edx
movzx ecx, byte [esp + 0x4e]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x46]
shl eax, cl
movzx ecx, byte [esp + 0x4c]
shl edx, cl
movzx ecx, byte [esp + 0x4a]
or eax, edx
mov edx, dword [esp + 0x44]
shl edx, cl
mov ecx, dword [ebx + 8]
imul ecx, ebp
add ecx, dword [ebx + 4]
or eax, edx
mov dx, word [edi + ecx*2]
mov edi, dword [esp + 0x94]
movzx eax, ax
and dx, ax
mov dword [esp + 0x1c], eax
movzx eax, dx
mov dword [esp + 0x2c], eax
sub esp, 0x14
mov eax, esp
xor ebp, ebp
add edi, 0xc
mov esi, edi
mov dword [esp + 0x3c], esp
mov dword [eax], vtable.Rect.0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
call fcn.00477de0
lea ecx, [esp + 0x68]
push ecx
call fcn.00477d50
mov dword [esp + 0x8c], ebp
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
jge 0x4774f8
mov ecx, eax
imul ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ebp, dword [ebx + 4]
cmp ebp, dword [ebx + 0xc]
jge 0x4774e2
mov edx, dword [esp + 0x30]
add ecx, ebp
lea eax, [edx + ecx*2]
mov dword [esp + 0x28], eax
lea esp, [esp]
mov ecx, dword [esp + 0x28]
mov cx, word [ecx]
and cx, word [esp + 0x1c]
cmp cx, word [esp + 0x2c]
je 0x4774cb
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov esi, edx
sub esi, eax
test esi, 0xfffffffe
je 0x477429
mov esi, dword [esp + 0x28]
mov si, word [esi - 2]
and si, word [esp + 0x1c]
cmp cx, si
jne 0x477429
mov eax, edi
call fcn.00477ce0
mov edx, dword [esp + 0x24]
sub edx, dword [ebx + 8]
cmp dword [eax + 8], edx
jne 0x477421
mov eax, edi
call fcn.00477ce0
add eax, 0xc
inc dword [eax]
jmp 0x4774cb
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
mov cx, word [ecx]
and cx, word [esp + 0x1c]
movzx ecx, cx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x477444
xor ecx, ecx
jmp 0x47744c
mov ecx, dword [esp + 0x7c]
sub ecx, eax
sar ecx, 1
mov esi, edx
sub esi, eax
sar esi, 1
cmp esi, ecx
jae 0x477467
mov ax, word [esp + 0x20]
mov word [edx], ax
add edx, 2
mov dword [esp + 0x78], edx
jmp 0x47748b
mov esi, edx
cmp eax, edx
jbe 0x477472
call fcn.00480e22
mov eax, dword [esp + 0x68]
push esi
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x78]
call fcn.00477e90
mov dword [esp + 0x54], vtable.Rect.0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x8c], 1
sub eax, dword [ebx + 8]
mov ecx, ebp
sub ecx, dword [ebx + 4]
mov dword [esp + 0x5c], eax
inc eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x54]
inc ecx
push eax
mov dword [esp + 0x64], ecx
call fcn.004311b0
mov byte [esp + 0x8c], 0
add dword [esp + 0x28], 2
inc ebp
cmp ebp, dword [ebx + 0xc]
jl 0x4773c0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add ecx, dword [esp + 0x18]
inc eax
cmp eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
jl 0x4773a3
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x74]
mov esi, dword [esp + 0x94]
mov ebx, dword [esi + 8]
sar eax, 1
call fcn.00423300
mov ebp, dword [esi + 8]
xor esi, esi
mov ebx, 2
jmp 0x477520
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push ebx
lea eax, [esp + esi + 0x30]
push eax
call edx
add esi, eax
sub ebx, eax
cmp esi, 2
jb 0x477520
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
xor esi, esi
sub eax, ecx
sar eax, 1
mov dword [esp + 0x24], esi
je 0x47776d
mov dword [esp + 0x28], esi
jmp 0x47755b
mov esi, dword [esp + 0x24]
cmp esi, eax
jb 0x477568
call fcn.00480e22
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x94]
mov ebp, dword [eax + 8]
lea ecx, [ecx + esi*2]
mov dword [esp + 0x30], ecx
xor ebx, ebx
mov esi, 2
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push esi
add eax, ebx
push eax
call edx
add ebx, eax
sub esi, eax
cmp ebx, 2
jb 0x477580
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], eax
jb 0x4775bd
call fcn.00480e22
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x28]
movzx eax, word [edx + ecx + 4]
mov ecx, dword [esp + 0x94]
mov ebp, dword [ecx + 8]
mov edx, eax
shr edx, 8
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], al
xor ebx, ebx
mov esi, 2
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push esi
lea edx, [esp + ebx + 0x18]
push edx
call eax
add ebx, eax
sub esi, eax
cmp ebx, 2
jb 0x4775e7
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x24], ecx
jb 0x477622
call fcn.00480e22
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x28]
movzx eax, word [eax + edx + 8]
mov ecx, dword [esp + 0x94]
mov ebp, dword [ecx + 8]
mov edx, eax
shr edx, 8
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], al
xor ebx, ebx
mov esi, 2
lea esp, [esp]
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push esi
lea edx, [esp + ebx + 0x1c]
push edx
call eax
add ebx, eax
sub esi, eax
cmp ebx, 2
jb 0x477650
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x24], ecx
jb 0x47768b
call fcn.00480e22
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x94]
mov dx, word [eax + 0xc]
sub dx, word [eax + 4]
mov ebp, dword [ecx + 8]
movzx eax, dx
mov edx, eax
shr edx, 8
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], al
xor ebx, ebx
mov esi, 2
jmp 0x4776c0
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push esi
lea edx, [esp + ebx + 0x20]
push edx
call eax
add ebx, eax
sub esi, eax
cmp ebx, 2
jb 0x4776c0
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x24], ecx
jb 0x4776fb
call fcn.00480e22
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x94]
mov dx, word [eax + 0x10]
sub dx, word [eax + 8]
mov ebp, dword [ecx + 8]
movzx eax, dx
mov edx, eax
shr edx, 8
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], al
xor ebx, ebx
mov esi, 2
jmp 0x477730
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push esi
lea edx, [esp + ebx + 0x24]
push edx
call eax
add ebx, eax
sub esi, eax
cmp ebx, 2
jb 0x477730
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x24]
add dword [esp + 0x28], 0x14
sub eax, ecx
inc edx
sar eax, 1
mov dword [esp + 0x24], edx
cmp edx, eax
jb 0x477557
xor esi, esi
cmp ecx, esi
je 0x47777a
push ecx
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x68]
push ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4