Function at 0x10019090
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebx, eax
mov eax, dword [esp + 0x44]
push esi
push edi
mov dword [esp + 0x2c], eax
test eax, eax
jl 0x100190b4
cmp eax, 9
jg 0x100190b4
mov dword [esp + 0x20], 1
jmp 0x100190d9
cmp eax, 0xa
jl 0x100190c8
cmp eax, 0x63
jg 0x100190c8
mov dword [esp + 0x20], 2
jmp 0x100190d9
cmp eax, 0x64
jne 0x1001942f
mov dword [esp + 0x20], 3
mov eax, dword [esp + 0x20]
mov esi, dword [eax*4 + 0x100a74a8]
mov eax, dword [0x100c7a60]
mov dword [esp + 0x28], esi
test eax, eax
jne 0x1001912a
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x100a6b44
call ebp
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x1001910e
mov dword [esp + 0x14], esi
jmp 0x1001913d
push 0x100a9e44
push eax
call edi
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10019125
mov dword [esp + 0x14], esi
jmp 0x10019146
push esi
call eax
jmp 0x10019139
push esi
call eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [esp + 0x14], eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10019176
push 0x100a6b44
call ebp
test eax, eax
jne 0x1001915b
mov dword [esp + 0x18], 0x1c
jmp 0x1001917e
push 0x100a9e44
push eax
call edi
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10019176
mov dword [esp + 0x18], 0x1c
jmp 0x10019187
push 0x1c
call eax
mov dword [esp + 0x18], eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x100191b8
push 0x100a6b44
call ebp
test eax, eax
jne 0x10019199
mov eax, 0x22
jmp 0x100191bc
push 0x100a9e44
push eax
call edi
mov esi, eax
mov dword [0x100c7a60], esi
test esi, esi
jne 0x100191b2
lea eax, [esi + 0x22]
jmp 0x100191c2
push 0x22
call esi
jmp 0x100191bc
push 0x22
call eax
mov esi, dword [0x100c7a60]
mov ebp, dword [ebx + 4]
mov ecx, dword [ebx]
add ebp, eax
mov eax, dword [ebx + 8]
sub eax, ecx
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, ecx
test esi, esi
jne 0x10019207
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x100a6b44
call esi
test eax, eax
je 0x10019211
push 0x100a9e44
push eax
call edi
mov dword [0x100c7a60], eax
test eax, eax
je 0x1001921a
push 0x10
call eax
jmp 0x10019211
push 0x10
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10019236
push 0x100a6b44
call esi
test eax, eax
je 0x1001923a
push 0x100a9e44
push eax
call edi
mov dword [0x100c7a60], eax
test eax, eax
je 0x10019243
push 0x1e
call eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10019273
push 0x100a6b44
call esi
test eax, eax
jne 0x10019258
mov dword [esp + 0x1c], 0x14
jmp 0x1001927b
push 0x100a9e44
push eax
call edi
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10019273
mov dword [esp + 0x1c], 0x14
jmp 0x10019284
push 0x14
call eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x100192b4
push 0x100a6b44
call esi
test eax, eax
jne 0x10019299
mov dword [esp + 0x24], 0x1c
jmp 0x100192bc
push 0x100a9e44
push eax
call edi
mov dword [0x100c7a60], eax
test eax, eax
jne 0x100192b4
mov dword [esp + 0x24], 0x1c
jmp 0x100192bc
push 0x1c
call eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x4c], 0x64
jne 0x10019319
mov ecx, dword [esp + 0x44]
push ecx
call fcn.10018510
test eax, eax
je 0x100192d6
mov eax, dword [eax + 4]
jmp 0x100192d8
xor eax, eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push 0
push 0
mov esi, dword [esp + 0x50]
push 0
push 2
push 0x1c
push edx
mov edx, dword [esp + 0x2c]
push 0
push 0
push ecx
push edx
push ebp
push ebx
push eax
mov eax, dword [esi]
push eax
call sub.GDIPLUS.DLL_GdipDrawImageRectRectI
test eax, eax
je 0x1001942f
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, ebx
sub esi, dword [esp + 0x1c]
lea edi, [ecx + ebp]
xor ecx, ecx
add esi, eax
add ebx, eax
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], ecx
jle 0x1001942f
jmp 0x10019364
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x10019373
lea eax, [esp + 0x2c]
call fcn.1000f040
jmp 0x10019376
or eax, 0xffffffff
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x5c]
sub ebx, esi
sub edi, ebp
lea edx, [esi + 2]
test ecx, ecx
je 0x10019391
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], ecx
jmp 0x10019399
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
imul eax, esi
push 0
push 0
push 0
push 2
push esi
mov esi, dword [esp + 0x5c]
push ecx
push eax
mov eax, dword [esi]
push 0
push edi
push ebx
push ebp
push edx
mov edx, dword [esp + 0x48]
push edx
push eax
call sub.GDIPLUS.DLL_GdipDrawImageRectRectI
test eax, eax
je 0x100193cd
mov dword [esi + 4], eax
mov eax, dword [0x100c7a60]
test eax, eax
jne 0x10019408
push 0x100a6b44
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x100193ec
mov eax, 0x14
jmp 0x1001940c
push 0x100a9e44
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100c7a60], eax
test eax, eax
jne 0x10019408
mov eax, 0x14
jmp 0x1001940c
push 0x14
call eax
push 0
neg eax
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.DLL_OffsetRect]
mov eax, dword [esp + 0x4c]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
jl 0x10019350
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc