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

Disassembly:
push 0xffffffffffffffff
push 0x4b7b16
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
xor esi, esi
cmp dword [ebp + 0xd8], esi
je 0x423128
mov eax, dword [ebp + 0xd8]
cmp eax, esi
jne 0x422836
push 0x80004003
call fcn.0048ff60
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0xf0]
mov dword [esp + 0x34], esi
call eax
cmp dword [esp + 0x2c], esi
jle 0x4228e5
lea eax, [ebp + 0x3c]
call fcn.00401190
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx + 0xc]
lea ecx, [ebp + 0x2c]
call eax
mov eax, dword [ebp + 0xd8]
cmp eax, esi
jne 0x42287b
push 0x80004003
call fcn.0048ff60
mov ecx, dword [eax]
mov edx, dword [ecx + 0x128]
push eax
call edx
mov eax, dword [ebp + 0xd8]
cmp eax, esi
jne 0x42289a
push 0x80004003
call fcn.0048ff60
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push eax
call edx
mov eax, dword [ebp + 0xd8]
cmp eax, esi
jne 0x4228b9
push 0x80004003
call fcn.0048ff60
mov ecx, dword [eax]
mov edx, dword [ecx + 0x110]
push eax
call edx
mov eax, dword [ebp + 0xd8]
cmp eax, esi
jne 0x4228d8
push 0x80004003
call fcn.0048ff60
mov ecx, dword [eax]
mov edx, dword [ecx + 0x9c]
push 1
push eax
call edx
lea eax, [esp + 0x80]
push eax
call fcn.00443a00
mov dword [esp + 0xa4], esi
lea ebx, [esp + 0x38]
lea edi, [esp + 0x80]
mov dword [esp + 0x38], 2
call fcn.00425760
lea ebx, [esp + 0x38]
mov dword [esp + 0x38], 1
call fcn.00425760
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x3c], eax
cmp ecx, eax
jbe 0x42294b
call fcn.00490387
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x54], edx
mov edi, ecx
cmp ecx, eax
jbe 0x422961
call fcn.00490387
mov esi, dword [esp + 0x80]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edi
xor ebx, ebx
cmp esi, ebx
je 0x42297c
cmp esi, dword [esp + 0x54]
je 0x422981
call fcn.00490387
cmp edi, dword [esp + 0x3c]
je 0x4230cf
cmp esi, ebx
jne 0x422b03
call fcn.00490387
xor esi, esi
cmp edi, dword [esi + 0x10]
jb 0x4229a4
call fcn.00490387
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xa4], 1
lea esi, [ebp + 0xc4]
cmp eax, 2
je 0x4229c7
lea esi, [ebp + 0xc8]
mov eax, dword [ebp + 0x5c]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x4229df
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [0x4e8bf4]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00414320
mov ebp, dword [esp + 0x28]
xor ecx, ecx
cmp dword [esp + 0x24], 2
setne cl
add esp, 8
mov dword [esp + 0x4c], esp
mov esi, esp
xor ebx, ebx
mov dword [esi], ebx
add ecx, 0x511
push ecx
mov eax, esp
mov edi, ecx
mov dword [esp + 0x50], esp
mov dword [eax], ebp
cmp ebp, ebx
je 0x422a29
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
call fcn.004120b0
cmp eax, ebx
jge 0x422a3d
cmp eax, 0x80004002
jne 0x4230c9
mov ecx, edi
call fcn.0040d7d0
mov esi, dword [esp + 0xb0]
mov eax, dword [esi + 0xd8]
add esp, 4
cmp eax, ebx
je 0x42282c
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf4]
push ebp
push eax
call edx
cmp dword [esp + 0x18], 2
jne 0x422b0a
mov eax, dword [esi + 0xec]
sub eax, dword [esi + 0xe8]
sar eax, 2
test eax, eax
mov eax, 0x4c7db0
ja 0x422a90
mov eax, 0x4c7db8
push ebx
push eax
push ecx
mov dword [esp + 0x54], esp
mov esi, esp
push ecx
mov eax, esp
mov dword [esi], ebx
mov edi, 0x459
mov dword [esp + 0x58], esp
mov dword [eax], ebp
cmp ebp, ebx
je 0x422ab6
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
push ebp
call edx
call fcn.004120b0
cmp eax, ebx
jge 0x422aca
cmp eax, 0x80004002
jne 0x4230c9
mov ecx, edi
call fcn.0040da90
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0xec]
sub ecx, dword [eax + 0xe8]
add esp, 0xc
sar ecx, 2
mov eax, str.red_254_89_40_r
test ecx, ecx
ja 0x422af8
mov eax, str.blue_25_158_216_r
push eax
push 0x458
jmp 0x422b95
mov esi, dword [esi]
jmp 0x42299a
mov ecx, dword [esi + 0x104]
sub ecx, dword [esi + 0x100]
mov eax, 0x4c7dc0
sar ecx, 2
test ecx, ecx
ja 0x422b27
mov eax, 0x4c7db8
push ebx
push eax
push ecx
mov dword [esp + 0x54], esp
mov esi, esp
push ecx
mov eax, esp
mov dword [esi], ebx
mov edi, 0x45f
mov dword [esp + 0x58], esp
mov dword [eax], ebp
cmp ebp, ebx
je 0x422b4d
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
call fcn.004120b0
cmp eax, ebx
jge 0x422b61
cmp eax, 0x80004002
jne 0x4230c9
mov ecx, edi
call fcn.0040da90
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x104]
sub ecx, dword [eax + 0x100]
add esp, 0xc
sar ecx, 2
mov eax, str.orange_255_162_0_r
test ecx, ecx
ja 0x422b8f
mov eax, str.blue_25_158_216_r
push eax
push 0x45e
push ecx
mov dword [esp + 0x54], esp
mov esi, esp
push ecx
mov eax, esp
mov dword [esi], ebx
mov dword [eax], ebp
mov dword [esp + 0x58], esp
cmp ebp, ebx
je 0x422bb4
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
call fcn.004120b0
cmp eax, ebx
jge 0x422bc8
cmp eax, 0x80004002
jne 0x4230c9
call fcn.0040e4c0
add esp, 0xc
push 0x4e74e0
push 0x10
call fcn.00490df2
add esp, 8
cmp eax, ebx
je 0x422bfa
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], 2
mov dword [eax + 0xc], 1
mov edi, eax
jmp 0x422bfc
xor edi, edi
mov dword [esp + 0x38], edi
cmp edi, ebx
je 0x422c7a
mov esi, dword [esp + 0xac]
mov ecx, dword [esp + 0x18]
mov dword [edi + 4], ebx
add esi, 0x12c
mov dword [edi], ecx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x422c25
xor ecx, ecx
jmp 0x422c2d
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
mov ebx, dword [esi + 0x10]
mov edx, ebx
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x422c45
mov dword [ebx], edi
add ebx, 4
mov dword [esi + 0x10], ebx
jmp 0x422c63
cmp eax, ebx
jbe 0x422c4e
call fcn.00490387
mov eax, dword [esi]
push ebx
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x68]
push ecx
mov eax, esi
call fcn.0042a3b0
test ebp, ebp
je 0x42282c
mov edx, dword [ebp]
mov eax, dword [edx + 0xc0]
push edi
push ebp
call eax
xor ebx, ebx
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0xac]
jne 0x422c8f
add eax, 0xdc
jmp 0x422c94
add eax, 0xf4
mov edi, dword [eax + 0x10]
sub edi, dword [eax + 0xc]
mov dword [esp + 0x24], eax
sar edi, 2
add edi, 3
shr edi, 2
cmp edi, ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], ebx
jle 0x42307a
mov edx, dword [esp + 0xac]
mov eax, dword [edx + 0x5c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x422cd6
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0xb0]
mov ecx, dword [0x4e8bf4]
add eax, 0xcc
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00414320
mov ebp, dword [esp + 0x28]
add esp, 0xc
cmp ebp, ebx
je 0x42282c
push 1
push 0x472
lea esi, [esp + 0x48]
mov eax, ebp
call fcn.0040f330
mov byte [esp + 0xa4], 2
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x48], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x422d37
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [esp + 0x24]
call fcn.0040ebd0
cmp eax, ebx
jge 0x422d4f
cmp eax, 0x80004002
jne 0x4230c9
mov byte [esp + 0xa4], 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x422d67
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x20], ebx
jne 0x422d7a
mov byte [esp + 0xa4], 1
jmp 0x423069
push 0x4e74e0
push 0x10
call fcn.00490df2
add esp, 8
cmp eax, ebx
je 0x422da4
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], 2
mov dword [eax + 0xc], 1
mov edi, eax
jmp 0x422da6
xor edi, edi
mov dword [esp + 0x38], edi
cmp edi, ebx
je 0x422e20
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0xac]
mov dword [edi + 4], 1
add esi, 0x12c
mov dword [edi], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x422dd3
xor ecx, ecx
jmp 0x422ddb
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
mov ebx, dword [esi + 0x10]
mov edx, ebx
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x422df3
mov dword [ebx], edi
add ebx, 4
mov dword [esi + 0x10], ebx
jmp 0x422e11
cmp eax, ebx
jbe 0x422dfc
call fcn.00490387
mov eax, dword [esi]
push ebx
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
mov eax, esi
call fcn.0042a3b0
mov edx, dword [ebp]
mov eax, dword [edx + 0xc0]
push edi
push ebp
call eax
xor ebx, ebx
mov ecx, dword [esp + 0xac]
mov eax, dword [ecx + 0xd8]
cmp eax, ebx
je 0x42282c
mov edx, dword [eax]
push ebp
push eax
mov eax, dword [edx + 0xf4]
call eax
mov ecx, dword [esp + 0x2c]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ecx
jmp 0x422e57
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x423044
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x34], eax
test eax, eax
je 0x42302a
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0xac]
mov byte [esp + 0xa4], 5
mov eax, dword [eax + 0x5c]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
mov dword [ecx], eax
test eax, eax
je 0x422eac
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov edi, dword [esp + 0xb0]
lea eax, [edi + 0xd0]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [0x4e8bf4]
call fcn.00414320
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x3c]
mov edx, dword [eax]
add esp, 0xc
push ebp
push eax
mov eax, dword [edx + 0xf4]
call eax
xor ecx, ecx
cmp dword [esp + 0x18], 2
sete cl
mov esi, ecx
test ebp, ebp
je 0x422efa
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebp
test ebp, ebp
je 0x422f13
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ebp
call eax
mov dword [esp + 0x7c], esi
test ebp, ebp
je 0x422f24
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
lea eax, [esp + 0x74]
lea ebx, [edi + 0x3c]
push eax
mov byte [esp + 0xa8], 6
call fcn.0041f7c0
lea ecx, [esp + 0x74]
call fcn.0041f570
push 0x4e74e0
push 0x10
call fcn.00490df2
add esp, 8
test eax, eax
je 0x422f74
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 2
mov dword [eax + 0xc], 1
mov esi, eax
jmp 0x422f76
xor esi, esi
mov dword [esp + 0x44], esi
test esi, esi
je 0x422ffd
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0xac]
mov edx, dword [esp + 0x34]
mov dword [esi + 4], 2
mov dword [esi], ecx
add edi, 0x12c
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x422faa
xor ecx, ecx
jmp 0x422fb2
mov ecx, dword [edi + 0x14]
sub ecx, eax
sar ecx, 2
mov ebx, dword [edi + 0x10]
mov edx, ebx
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x422fca
mov dword [ebx], esi
add ebx, 4
mov dword [edi + 0x10], ebx
jmp 0x422fe8
cmp eax, ebx
jbe 0x422fd3
call fcn.00490387
mov eax, dword [edi]
push ebx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x78]
push ecx
mov eax, edi
call fcn.0042a3b0
test ebp, ebp
je 0x42282c
mov edx, dword [ebp]
mov eax, dword [edx + 0xc0]
push esi
push ebp
call eax
mov byte [esp + 0xa4], 5
mov eax, dword [esp + 0x78]
test eax, eax
je 0x423015
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0xa4], 4
test ebp, ebp
je 0x42302a
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov eax, dword [esp + 0x38]
inc dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
inc eax
cmp eax, 4
mov dword [esp + 0x38], eax
jl 0x422e53
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
mov eax, dword [edx + 0x110]
push esi
call eax
mov byte [esp + 0xa4], 1
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov edi, dword [esp + 0x48]
xor ebx, ebx
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x422cb7
mov byte [esp + 0xa4], 0
cmp ebp, ebx
je 0x42308f
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
push ebp
call ecx
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jne 0x4230c5
call fcn.00490387
xor eax, eax
mov edx, dword [esp + 0x50]
cmp edx, dword [eax + 0x10]
jb 0x4230ac
call fcn.00490387
add dword [esp + 0x50], 4
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0xac]
jmp 0x422970
mov eax, dword [eax]
jmp 0x42309e
push eax
call fcn.0048ff60
mov ebp, dword [ebp + 0xd8]
cmp ebp, ebx
jne 0x4230e3
push 0x80004003
call fcn.0048ff60
mov eax, dword [ebp]
mov ecx, dword [eax + 0x110]
push ebp
call ecx
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x423103
push eax
call fcn.00490210
add esp, 4
mov edx, dword [esp + 0x80]
push edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call fcn.00490210
add esp, 4
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4