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

Disassembly:
sub esp, 0xac
push ebp
mov ebp, dword [esp + 0xb4]
mov eax, dword [ebp + 0x3c]
push edi
xor edi, edi
cmp eax, edi
je 0x74954b
push edi
push edi
push eax
call fcn.00503400
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x749559
pop edi
mov eax, 1
pop ebp
add esp, 0xac
ret
mov dl, byte [eax + 0x4a]
xor ecx, ecx
cmp dl, 0x20
sete cl
push esi
mov esi, dword [ebp + 0x178]
cmp esi, edi
mov dword [esp + 0x24], ecx
jne 0x749582
pop esi
pop edi
mov eax, 1
pop ebp
add esp, 0xac
ret
push 0x8a15d0
call fcn.00460bf0
add esp, 4
push edi
push eax
mov ecx, esi
call fcn.00739730
cmp eax, edi
je 0x7495a5
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
jmp 0x7495a9
mov dword [esp + 0xc], edi
push ebx
push str.GREEN
call fcn.00460bf0
add esp, 4
push edi
push eax
mov ecx, esi
call fcn.00739730
cmp eax, edi
je 0x7495c9
mov ebx, dword [eax + 4]
jmp 0x7495cb
xor ebx, ebx
push str.BLUE
call fcn.00460bf0
add esp, 4
push edi
push eax
mov ecx, esi
call fcn.00739730
cmp eax, edi
je 0x7495e8
mov edi, dword [eax + 4]
push str.GLOSS
call fcn.00460bf0
add esp, 4
push 0
push eax
mov ecx, esi
call fcn.00739730
test eax, eax
je 0x749608
mov eax, dword [eax + 4]
jmp 0x74960a
xor eax, eax
mov ecx, dword [esp + 0x10]
shl eax, 8
or eax, edi
shl eax, 8
or eax, ebx
shl eax, 8
or eax, ecx
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ebx, [esp + 0x38]
lea ecx, [ebp + 0x17c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
jmp 0x749655
mov ebp, dword [esp + 0xc0]
test eax, eax
jl 0x7496a9
cmp eax, 1
jge 0x7496a9
mov edx, dword [esp + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x7496a9
movsx eax, byte [ebp + 7]
mov ecx, dword [ebp]
push eax
push ecx
push esi
call fcn.007493a0
add esp, 0xc
push str.NUMCOLOURS
mov dword [ebx], eax
call fcn.00460bf0
add esp, 4
push 0
push eax
mov ecx, esi
call fcn.00739730
test eax, eax
je 0x74969c
mov eax, dword [eax + 4]
jmp 0x74969e
xor eax, eax
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x74994e
mov ebp, dword [ebx]
test ebp, ebp
je 0x7498a6
push 0
push 0
push ebp
call fcn.00503400
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebx + 4], esi
jne 0x7496d0
mov dword [ebx], eax
jmp 0x7498a6
push 0
mov ecx, esi
call fcn.006bed80
mov edi, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [ebx + 0xc], edi
jne 0x7496f2
push 0
mov ecx, esi
call fcn.006bedc0
mov dword [ebx + 0x10], eax
test edi, edi
jne 0x7496fd
mov dword [ebx], edi
jmp 0x7498a6
mov eax, dword [0x9b09fc]
test eax, eax
jne 0x74995b
mov edx, dword [esp + 0xc0]
cmp byte [edx + 7], 2
je 0x749979
push ebp
push str._MASK
call fcn.00460c20
push 0
push 0
push eax
call fcn.00503400
mov esi, eax
add esp, 0x14
test esi, esi
mov dword [ebx + 8], esi
jne 0x749743
mov dword [ebx], eax
jmp 0x7498a6
push 0
mov ecx, esi
call fcn.006bed80
mov edi, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [ebx + 0x14], edi
jne 0x749765
push 0
mov ecx, esi
call fcn.006bedc0
mov dword [ebx + 0x18], eax
test edi, edi
jne 0x749770
mov dword [ebx], edi
jmp 0x7498a6
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x749896
cmp eax, 1
jge 0x749896
mov ebp, dword [esp + 0x14]
mov esi, dword [ebp]
test esi, esi
je 0x749896
push str.REMAP
call fcn.00460bf0
add esp, 4
push eax
mov ecx, esi
call fcn.00747a50
test eax, eax
je 0x749896
push 0
push str.REMAP
call fcn.00460bf0
add esp, 4
push eax
mov ecx, esi
call fcn.00747ac0
test eax, eax
mov dword [ebx + 0x20], eax
je 0x749896
xor ecx, ecx
add ebp, 8
mov dword [esp + 0x24], ecx
lea edi, [ebx + 0x24]
mov dword [esp + 0x20], ebp
mov esi, dword [ebp]
test esi, esi
je 0x74986f
push 0
push 0x8a15d0
call fcn.00460bf0
add esp, 4
push eax
mov ecx, esi
call fcn.00747ac0
push 0
push str.GREEN
mov ebp, eax
call fcn.00460bf0
add esp, 4
push eax
mov ecx, esi
call fcn.00747ac0
push 0
push str.BLUE
mov ebx, eax
call fcn.00460bf0
add esp, 4
push eax
mov ecx, esi
call fcn.00747ac0
push 0
push str.GLOSS
mov dword [esp + 0x38], eax
call fcn.00460bf0
add esp, 4
push eax
mov ecx, esi
call fcn.00747ac0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
mov ebx, dword [esp + 0x2c]
shl eax, 8
or eax, ebp
jmp 0x749876
mov eax, 0xff
shl eax, cl
mov ebp, dword [esp + 0x20]
add ecx, 8
mov dword [edi], eax
add ebp, 4
add edi, 4
cmp ecx, 0x20
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
jl 0x7497e3
mov ecx, dword [esp + 0x10]
inc ecx
add ebx, 0x34
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
add edx, 4
cmp eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x74964e
call fcn.006cb2a0
mov eax, dword [esp + 0xc0]
push eax
call fcn.007535e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xbc], ecx
lea edx, [esp + 0x70]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov ecx, 0xd
lea esi, [esp + 0x3c]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push edx
mov edi, 1
call fcn.0073ac30
add esp, 8
test eax, eax
jne 0x7499a6
lea eax, [esp + 0x6c]
push eax
call fcn.0073acb0
mov al, byte [ebx + 0x4a]
add esp, 4
cmp al, 8
jne 0x749997
lea ecx, [esp + 0x6c]
push ecx
call fcn.00748ad0
jmp 0x7499a1
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0xac
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call fcn.0073b360
add esp, 8
pop ebx
pop esi
pop edi
mov eax, 1
pop ebp
add esp, 0xac
ret
mov edx, dword [esp + 0x1c]
push edx
push ebx
call fcn.0073b360
add esp, 8
pop ebx
pop esi
pop edi
mov eax, 1
pop ebp
add esp, 0xac
ret
lea edx, [esp + 0x6c]
push edx
call fcn.0073b010
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x44]
test eax, eax
mov esi, dword [esp + 0x3c]
je 0x7499ba
push eax
mov ecx, esi
call fcn.006bedb0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x7499ca
push eax
mov ecx, esi
call fcn.006bedd0
mov eax, dword [esp + 0x4c]
test eax, eax
mov esi, dword [esp + 0x40]
je 0x7499de
push eax
mov ecx, esi
call fcn.006bedb0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x7499ee
push eax
mov ecx, esi
call fcn.006bedd0
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0xac
ret