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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10062a06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov byte [esp + 0x34], cl
push ebx
push esi
push edi
test cl, cl
je 0x10030857
mov eax, dword [ebp + 0x14]
and dword [eax], 0
jmp 0x10031001
xor edx, edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x124], edx
mov dword [esp + 0x14], 0xdb3ae355
mov dword [esp + 0x24], 8
mov dword [esp + 0x24], 0x88d0d3f7
mov dword [esp + 0x24], edx
mov dword [esp + 0x24], 0x2513244d
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x90], edx
mov dword [esp + 0x10], edx
jmp 0x100308c3
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xf4], 0xffffffff
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x100308b0
mov dword [esp + 0x14], 0x16
cmp dword [esp + 0x14], 0xffffffed
jge 0x10030988
mov dword [esp + 0x24], 0xfffffff9
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], edx
jmp 0x1003090a
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xb8], 0xfffffffb
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jl 0x100308f7
push ecx
push 1
push 0x527d
push 0x11c4
push 0x58b0
push 0x7108
push 0x5c40
push 0x744f
push 0x307a
push ecx
lea edx, [esp + 0xa8]
lea ecx, [esp + 0xa0]
call fcn.1002fe97
add esp, 0x28
lea eax, [esp + 0x90]
mov edx, 0xbd4
push 0
push 0x5302
push 0x6c44
push ecx
push eax
push ecx
mov ecx, 0x1ef8
call fcn.10030721
add esp, 0x18
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xffffffed
push 0
pop edx
jl 0x100308dd
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x74], eax
jb 0x100309a6
mov eax, dword [edi]
jmp 0x100309a8
mov eax, edi
push ecx
push edx
push eax
mov ecx, ebx
call fcn.1002fa53
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
cmp esi, dword [esp + 0x74]
jae 0x10030feb
mov dword [esp + 0x50], 0xbf5cd53b
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x10], 0xfffffff8
mov dword [esp + 0x10], 0x1a90
cmp dword [esp + 0x10], 0x1b9f
jle 0x10030a6c
push 1
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], 0x7d00
mov ecx, edi
mov eax, ebx
shl eax, cl
lea ecx, [esp + 0xdc]
cdq
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10030a35
mov eax, dword [eax]
push eax
call fcn.1004a873
pop ecx
push 0
push 1
lea ecx, [esp + 0xe4]
call fcn.10003d33
add edi, esi
dec dword [esp + 0x14]
jne 0x10030a16
inc esi
cmp esi, 0xa66
jl 0x10030a0c
inc ebx
cmp ebx, 0x5bff
jl 0x10030a0a
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push 1
lea ecx, [esp + 0xb0]
call fcn.100039a6
cmp dword [esp + 0x10], 0x1a3a
jge 0x10030a8f
push str.sfzulr_qlsnhocz_mslk_heirt_why_vpwekdud_cezrin
call fcn.1004a873
pop ecx
xor ecx, ecx
inc ecx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x50], 0x4093
mov dword [esp + 0x18], 0
jmp 0x10030abb
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x54], 0x68ec0ae9
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jl 0x10030aab
push ecx
lea eax, [esp + 0xb0]
mov edx, 0x6032
push eax
push 0x7184
push 0x610a
push 0x3b3e
lea eax, [esp + 0x2c]
push eax
push 0x40d7
push 0x271
push 0x6642
push 0x60a5
push 0xc18
push 0
push ecx
push 0x355e
mov ecx, 0x471a
call fcn.10031157
add esp, 0x38
mov dword [esp + 0x18], 0
jmp 0x10030b2f
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0xcc], 0xa81d68c2
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 4
jl 0x10030b1c
mov dword [esp + 0x54], 0
jmp 0x10030c4e
push 1
lea ecx, [esp + 0x98]
call fcn.100039a6
push 1
push 0x3cdb
mov byte [esp + 0x12c], 4
lea eax, [esp + 0xc4]
push 0
mov dword [esp + 0x28], 0
lea edx, [esp + 0xa0]
mov dword [esp + 0x94], 0x6d4f509e
mov cl, 1
push 0x1ec5
mov dword [esp + 0x2c], 0xcbf6
push eax
mov dword [esp + 0x28], 2
call fcn.1003047b
add esp, 0x10
lea ecx, [esp + 0x8c]
mov edx, 0x3be7
call fcn.10031016
mov eax, dword [esp + 0xb0]
pop ecx
xor ecx, ecx
mov edx, dword [eax]
test edx, edx
setne cl
xor eax, eax
cmp ecx, 0x4b4f
setne al
xor ecx, ecx
cmp edx, eax
setne cl
inc ecx
neg ecx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp edx, 0x6b9ec499
setge al
cmp eax, ecx
jle 0x10030bf8
cmp dword [esp + 0x50], 0
je 0x10030bf8
xor eax, eax
inc eax
jmp 0x10030bfa
xor eax, eax
inc dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov ecx, dword [esp + 0x94]
jne 0x10030c31
cmp dword [ecx], 0
jne 0x10030c31
xor eax, eax
jmp 0x10030c34
xor eax, eax
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x124], 1
call fcn.10003a29
dec dword [esp + 0x54]
cmp dword [esp + 0x54], 0xfffffffb
jg 0x10030b43
push 0x21b9
lea eax, [esp + 0x80]
mov edx, 0x67f1
push eax
push 0
mov ecx, 0x6144
call fcn.10034761
add esp, 0xc
mov byte [esp + 0x124], 0
lea ecx, [esp + 0xac]
call fcn.10003a29
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x10030cee
cmp eax, dword [esp + 0x3c]
je 0x10030cba
lea eax, [esp + 0x3c]
push eax
push ecx
push ecx
push ebx
push ecx
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x4c]
call fcn.10033cc9
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov esi, dword [esp + 0x24]
add esi, eax
cmp dword [edi + 0x14], 8
mov dword [esp + 0x3c], esi
jb 0x10030cce
mov eax, dword [edi]
jmp 0x10030cd0
mov eax, edi
push dword [edi + 0x10]
mov ecx, ebx
push esi
push eax
call fcn.1002fa53
mov dword [esp + 0x38], eax
cmp esi, 0xffffffff
jne 0x100309bc
jmp 0x10030feb
push 4
lea ecx, [esp + 0x60]
call fcn.100039a6
lea eax, [esp + 0x8c]
mov byte [esp + 0x124], 5
push eax
push 0x582f
mov dword [esp + 0x30], 0x22ba3946
push 1
push ecx
mov dword [esp + 0x58], 0x2e77e815
lea ecx, [esp + 0x6c]
mov dword [esp + 0x3c], 0xa41b8700
call fcn.1002fcce
add esp, 0x10
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 3
pop edi
jmp 0x10030f75
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x1c], 0x882
cmp dword [esp + 0x1c], 0xa1c
jle 0x10030db4
mov esi, ebx
mov edi, ebx
lea eax, [edi + esi]
cdq
lea ecx, [esp + 0x100]
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10030d89
mov eax, dword [eax]
push eax
call fcn.1004a873
pop ecx
push ebx
push 1
lea ecx, [esp + 0x108]
call fcn.10003d33
inc edi
cmp edi, 0x5a5a
jl 0x10030d6d
inc esi
cmp esi, 0x2e46
jl 0x10030d6b
push 3
pop edi
lea eax, [esp + 0x48]
push eax
push 0x600c
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x68]
push eax
push 0x1dd0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x64]
push eax
push ebx
lea edx, [esp + 0x40]
lea ecx, [esp + 0x64]
call fcn.10031116
add esp, 0x20
cmp dword [esp + 0x1c], 0x525
jge 0x10030dfd
push str.bxqgi_cab_lsiquc
call fcn.1004a873
pop ecx
mov dword [esp + 0x124], 5
mov dword [esp + 0x20], ebx
jmp 0x10030f67
push 4
lea ecx, [esp + 0xa4]
call fcn.100039a6
mov byte [esp + 0x124], 8
mov dword [esp + 0x34], ebx
jmp 0x10030e40
mov eax, dword [esp + 0x34]
mov dword [esp + eax*4 + 0xc0], 2
inc dword [esp + 0x34]
cmp dword [esp + 0x34], edi
jl 0x10030e2d
lea eax, [esp + 0x34]
push eax
push 0x78b1
push ebx
push ecx
push 0x24de
push ecx
lea edx, [esp + 0xb8]
call fcn.100301d8
mov byte [esp + 0x4b], bl
add esp, 0x18
cmp byte [esp + 0x33], 0
je 0x10030e7f
push ebx
push 0xd61
call fcn.10033b20
pop ecx
pop ecx
mov dword [esp + 0x2c], ebx
jmp 0x10030f45
push ecx
push ebx
mov dword [esp + 0x24], ebx
push ecx
call fcn.1003472e
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x5c]
cmp dword [eax + ecx*4], ebx
je 0x10030f33
cmp dword [esp + 0xc8], 0xfffb
mov esi, dword [esp + 0x2c]
sbb eax, eax
neg eax
imul eax, eax, 0x7b98
add esi, eax
mov eax, dword [esp + 0x5c]
sub esi, dword [eax + 4]
mov eax, dword [esp + 0x28]
neg esi
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x20]
sbb esi, esi
mov eax, dword [esp + 0x44]
inc esi
mov ecx, dword [esp + 0x5c]
neg esi
neg esi
sbb esi, esi
xor ebx, ebx
neg esi
imul eax, esi
cmp dword [ecx + edx*4], eax
mov eax, dword [esp + 0xa0]
setl bl
xor ecx, ecx
cmp ebx, 0x8f5b
setle cl
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x4c]
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x5c]
setg dl
xor ecx, ecx
cmp edx, dword [eax + 4]
setl cl
xor ebx, ebx
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], ebx
je 0x10030f33
xor eax, eax
inc eax
jmp 0x10030f35
mov eax, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
inc dword [esp + 0x2c]
cmp dword [esp + 0x2c], edi
jle 0x10030e88
lea ecx, [esp + 0xa0]
mov byte [esp + 0x124], 5
call fcn.10003a29
inc dword [esp + 0x20]
cmp dword [esp + 0x20], edi
jle 0x10030e11
inc dword [esp + 0x28]
cmp dword [esp + 0x28], edi
jle 0x10030d43
lea ecx, [esp + 0x5c]
mov byte [esp + 0x124], bl
call fcn.10003a29
push dword [ebp + 8]
lea eax, [esp + 0x40]
xor dl, dl
push eax
lea eax, [esp + 0x70]
mov ecx, 0x7c0d
push eax
push 0x19c4
push 0xc3
call fcn.10031aaa
add esp, 0x14
mov dword [esp + 0x84], 0xc68ec0ae
mov dl, 1
mov dword [esp + 0x8c], 0xfffffffa
call fcn.1002fe4d
push 0x9cb
lea eax, [esp + 0x88]
push eax
push ecx
push ecx
xor cl, cl
call fcn.100306bc
add esp, 0x10
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
push eax
call fcn.10034d1e
lea ecx, [esp + 0x68]
call fcn.100350f7
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret