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

Disassembly:
sub esp, 0x64
push ebx
push esi
push edi
mov edi, dword [esp + 0x74]
mov esi, ecx
push edi
lea ecx, [esp + 0x44]
call fcn.0055c900
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x168]
mov ebx, dword [esp + 0x48]
sub ebx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x16c]
mov esi, dword [edi + 0xfc]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x74], esi
test ecx, ecx
jle 0x52258b
fild dword [esp + 0x1c]
push ebp
fstp qword [esp + 0x3c]
jmp 0x522290
inc eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
fdiv qword [esp + 0x3c]
fstp qword [esp + 0x34]
cmp dword [esp + 0x84], edi
je 0x52240f
mov eax, dword [esi + 0x2c]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x1c], ebp
jle 0x5223c8
lea esp, [esp]
test ebp, ebp
jl 0x5222e9
cmp ebp, eax
jge 0x5222e9
cmp ebp, dword [esi + 0x2c]
jge 0x522594
mov ecx, dword [esi + 0x28]
mov esi, dword [ecx + ebp*4]
jmp 0x5222eb
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
push 0
mov ecx, esi
call eax
test eax, eax
je 0x5223a5
mov eax, dword [esi + 0x104]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
cmp eax, ecx
je 0x5223a1
mov edx, dword [esi + 0xc0]
mov ebp, dword [esi + 0xc4]
mov eax, dword [esi + 0xc8]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0xcc]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
test ecx, ecx
je 0x522349
fld qword [esp + 0x34]
jmp 0x52234b
fld1
sub ebp, edi
mov dword [esp + 0x10], ebp
fimul dword [esp + 0x10]
call fcn.005e0620
mov esi, eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x52236a
mov eax, dword [eax + 4]
push 0xcc0020
push ebp
push ebx
push edi
mov edi, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 4]
push esi
push ebx
push edi
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
add edi, esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0x2c]
inc ebp
cmp ebp, eax
mov dword [esp + 0x1c], ebp
mov esi, edx
jl 0x5222d0
cmp dword [esp + 0x10], 0
je 0x5223c8
fld qword [esp + 0x34]
jmp 0x5223ca
fld1
mov ebp, dword [esp + 0x18]
sub ebp, edi
mov dword [esp + 0x10], ebp
fimul dword [esp + 0x10]
call fcn.005e0620
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x5223eb
mov ecx, dword [ecx + 4]
push 0xcc0020
push ebp
push ebx
push edi
push 0
push ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x30]
push ebx
push eax
push 0
push edx
jmp 0x522566
mov ebp, dword [esi + 0x2c]
sub ebp, 1
mov dword [esp + 0x1c], ebp
js 0x52251d
nop
test ebp, ebp
jl 0x522431
cmp ebp, dword [esi + 0x2c]
jge 0x522431
mov eax, dword [esi + 0x28]
mov esi, dword [eax + ebp*4]
jmp 0x522433
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
push 0
mov ecx, esi
call eax
test eax, eax
je 0x5224ff
mov eax, dword [esi + 0x104]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x5224fb
mov edx, dword [esi + 0xc0]
mov eax, dword [esi + 0xc4]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 0xc8]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xcc]
mov esi, dword [esp + 0x18]
sub esi, eax
mov dword [esp + 0x6c], edx
test ecx, ecx
je 0x522493
fld qword [esp + 0x34]
jmp 0x522495
fld1
mov ebp, esi
sub ebp, edi
mov dword [esp + 0x28], ebp
fimul dword [esp + 0x28]
call fcn.005e0620
mov edi, eax
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x5224b7
xor ecx, ecx
jmp 0x5224ba
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x18]
push 0xcc0020
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
mov edx, eax
sub edx, esi
push edx
push 0
push ecx
push edi
sub eax, edi
push ebx
sub eax, ebp
push eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x2c]
add ebp, edi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x78]
sub ebp, 1
mov dword [esp + 0x1c], ebp
jns 0x522420
cmp dword [esp + 0x10], 0
je 0x52251d
fld qword [esp + 0x34]
jmp 0x52251f
fld1
mov ebp, dword [esp + 0x18]
sub ebp, edi
mov dword [esp + 0x10], ebp
fimul dword [esp + 0x10]
call fcn.005e0620
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x522540
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x18]
push 0xcc0020
push ebp
push ebx
push 0
push 0
push ecx
push eax
sub edx, eax
sub edx, dword [esp + 0x30]
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 4]
push ebx
push edx
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
cdq
idiv edi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
cmp eax, edi
jl 0x522290
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret 0x10
call fcn.005df2b2
int3