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

Disassembly:
push 0xffffffffffffffff
push 0x4f2a2c
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov eax, dword [esp + 0x124]
mov esi, ecx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x20], eax
call fcn.00444310
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x64]
xor ebx, ebx
push eax
lea edx, [esp + 0x4c]
mov ecx, esi
mov dword [esp + 0x124], ebx
call fcn.00497ad0
test al, al
je 0x4a04f5
lea ecx, [esp + 0x44]
push ecx
call fcn.00499040
cmp al, bl
jne 0x4a0511
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x120], 0xffffffff
call fcn.004443b0
xor al, al
jmp 0x4a0d6c
push ecx
mov eax, esp
lea esi, [esp + 0x48]
mov dword [esp + 0x1c], esp
mov dword [eax], str.Config
call fcn.004980d0
cmp al, bl
jne 0x4a0545
mov eax, esi
push eax
mov dword [esp + 0x120], 0xffffffff
call fcn.004443b0
xor al, al
jmp 0x4a0d6c
push ecx
mov eax, esp
mov dword [eax], 0x50fbc4
lea esi, [esp + 0xd8]
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], esp
call fcn.00444470
mov ebp, 8
cmp dword [eax + 0x18], ebp
jb 0x4a0571
mov eax, dword [eax + 4]
jmp 0x4a0574
add eax, 4
push eax
call fcn.004c94ca
add esp, 4
mov esi, eax
cmp dword [esp + 0xec], ebp
jb 0x4a0598
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.004c8f17
add esp, 4
cmp esi, 1
jle 0x4a04f5
call fcn.004a0290
mov dword [esp + 0x14], eax
mov dword [eax], esi
lea eax, [esp + 0x44]
call fcn.00498cd0
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0xf4]
call fcn.004989c0
push 1
lea esi, [esp + 0x48]
mov byte [esp + 0x120], 1
call fcn.00498730
test eax, eax
je 0x4a0d40
mov ecx, dword [esp + 0x80]
cmp ecx, ebx
je 0x4a062b
cmp dword [esp + 0x90], 1
jne 0x4a062b
mov eax, dword [esp + 0x84]
mov dword [esp + 0x7c], ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], ecx
push 1
lea esi, [esp + 0x48]
call fcn.00498730
test eax, eax
je 0x4a0d24
mov edi, edi
mov ecx, dword [esp + 0x80]
cmp ecx, ebx
je 0x4a068a
cmp dword [esp + 0x90], 1
jne 0x4a068a
mov eax, dword [esp + 0x84]
xor edx, edx
cmp eax, ebx
setne dl
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], edx
push 0xa0
call fcn.004c8f3d
add esp, 4
cmp eax, ebx
je 0x4a06f7
mov dword [eax + 0x1c], ebx
mov ecx, 7
mov dword [eax + 0x20], ecx
xor edx, edx
mov word [eax + 0xc], dx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x38], ebx
mov word [eax + 0x28], dx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x54], ebx
mov word [eax + 0x44], dx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x70], ebx
mov word [eax + 0x60], dx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x8c], ebx
xor ecx, ecx
mov word [eax + 0x7c], cx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], bl
mov dword [eax + 0x9c], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov edi, eax
jmp 0x4a06f9
xor edi, edi
lea edx, [esp + 0x44]
push edx
lea esi, [esp + 0xd8]
mov dword [esp + 0x1c], edi
call fcn.004989c0
mov byte [esp + 0x11c], 2
cmp dword [esp + 0xa8], ebx
je 0x4a0c14
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push 0x507f80
lea eax, [esp + 0x48]
push eax
call fcn.00499af0
cmp eax, ebx
je 0x4a07e9
mov esi, dword [esp + 0xa4]
mov ecx, eax
mov edx, eax
and edx, 0xffff
sar ecx, 0x10
mov ecx, dword [esi + ecx*4]
shl edx, 5
mov edx, dword [ecx + edx + 0x10]
mov dword [esp + 0x80], eax
lea esi, [esp + 0x20]
lea eax, [esp + 0x44]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
call fcn.00444450
mov byte [esp + 0x11c], 3
cmp dword [eax + 0x18], ebp
jb 0x4a07ad
mov edx, dword [eax + 4]
jmp 0x4a07b0
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a07b5
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [edi + 8]
call fcn.00401760
mov byte [esp + 0x11c], 2
cmp dword [esp + 0x38], ebp
jb 0x4a07e9
mov eax, dword [esp + 0x24]
push eax
call fcn.004c8f17
add esp, 4
cmp dword [esp + 0xa8], ebx
je 0x4a0c14
mov edx, dword [esp + 0x7c]
push str.logo
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x88]
call fcn.00499af0
cmp eax, ebx
je 0x4a0992
mov esi, dword [esp + 0xa4]
mov edx, eax
mov ecx, eax
and ecx, 0xffff
sar edx, 0x10
mov edx, dword [esi + edx*4]
shl ecx, 5
mov ecx, dword [edx + ecx + 0x10]
mov dword [esp + 0x80], eax
lea esi, [esp + 0x20]
lea eax, [esp + 0x44]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
call fcn.00444450
mov byte [esp + 0x11c], 4
cmp dword [eax + 0x18], ebp
jb 0x4a0880
mov edx, dword [eax + 4]
jmp 0x4a0883
lea edx, [eax + 4]
xor eax, eax
mov word [esp + 0xbc], ax
mov eax, edx
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a08a4
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0xc0]
call fcn.00401760
mov byte [esp + 0x11c], 6
cmp dword [esp + 0x38], ebp
jb 0x4a08dc
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004c8f17
add esp, 4
xor edx, edx
mov word [esp + 0x24], dx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
cmp dword [esp + 0xd0], ebp
jae 0x4a0906
lea edx, [esp + 0xbc]
mov eax, edx
lea esi, [eax + 2]
jmp 0x4a0910
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0910
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [edi + 0x24]
call fcn.00401760
mov edx, dword [esp + 0xbc]
cmp dword [esp + 0xd0], ebp
jae 0x4a0940
lea edx, [esp + 0xbc]
cmp dword [esp + 0x1c], ebx
je 0x4a0957
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call fcn.00405f10
mov esi, eax
jmp 0x4a0959
xor esi, esi
mov ecx, dword [edi + 0x94]
cmp ecx, ebx
je 0x4a096b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x94], esi
mov byte [esp + 0x11c], 2
cmp dword [esp + 0xd0], ebp
jb 0x4a0992
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.004c8f17
add esp, 4
cmp dword [esp + 0xa8], ebx
je 0x4a0c14
mov ecx, dword [esp + 0x80]
push str.flagname
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x84]
call fcn.00499af0
cmp eax, ebx
je 0x4a0a68
mov esi, dword [esp + 0xa4]
mov ecx, eax
mov edx, eax
and edx, 0xffff
sar ecx, 0x10
mov ecx, dword [esi + ecx*4]
shl edx, 5
mov edx, dword [ecx + edx + 0x10]
mov dword [esp + 0x80], eax
lea esi, [esp + 0x20]
lea eax, [esp + 0x44]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
call fcn.00444450
mov byte [esp + 0x11c], 7
cmp dword [eax + 0x18], ebp
jb 0x4a0a2c
mov edx, dword [eax + 4]
jmp 0x4a0a2f
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0a34
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [edi + 0x40]
call fcn.00401760
mov byte [esp + 0x11c], 2
cmp dword [esp + 0x38], ebp
jb 0x4a0a68
mov eax, dword [esp + 0x24]
push eax
call fcn.004c8f17
add esp, 4
cmp dword [esp + 0xa8], ebx
je 0x4a0c14
mov edx, dword [esp + 0x7c]
push 0x50fbec
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x88]
call fcn.00499af0
cmp eax, ebx
je 0x4a0b3b
mov esi, dword [esp + 0xa4]
mov edx, eax
mov ecx, eax
and ecx, 0xffff
sar edx, 0x10
mov edx, dword [esi + edx*4]
shl ecx, 5
mov ecx, dword [edx + ecx + 0x10]
mov dword [esp + 0x80], eax
lea esi, [esp + 0x20]
lea eax, [esp + 0x44]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
call fcn.00444450
mov byte [esp + 0x11c], 8
cmp dword [eax + 0x18], ebp
jb 0x4a0aff
mov edx, dword [eax + 4]
jmp 0x4a0b02
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0b07
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [edi + 0x5c]
call fcn.00401760
mov byte [esp + 0x11c], 2
cmp dword [esp + 0x38], ebp
jb 0x4a0b3b
mov edx, dword [esp + 0x24]
push edx
call fcn.004c8f17
add esp, 4
cmp dword [esp + 0xa8], ebx
je 0x4a0c14
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push 0x50fbf8
lea eax, [esp + 0x48]
push eax
call fcn.00499af0
cmp eax, ebx
je 0x4a0c14
mov esi, dword [esp + 0xa4]
mov ecx, eax
mov edx, eax
and edx, 0xffff
sar ecx, 0x10
mov ecx, dword [esi + ecx*4]
shl edx, 5
mov edx, dword [ecx + edx + 0x10]
mov dword [esp + 0x80], eax
lea esi, [esp + 0x20]
lea eax, [esp + 0x44]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
call fcn.00444450
mov byte [esp + 0x11c], 9
cmp dword [eax + 0x18], ebp
jb 0x4a0bd2
mov edx, dword [eax + 4]
jmp 0x4a0bd5
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a0be0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [edi + 0x78]
call fcn.00401760
mov byte [esp + 0x11c], 2
cmp dword [esp + 0x38], ebp
jb 0x4a0c14
mov eax, dword [esp + 0x24]
push eax
call fcn.004c8f17
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x18]
add eax, 0xc
cmp ecx, ebx
jne 0x4a0c26
xor eax, eax
jmp 0x4a0c2e
mov eax, dword [eax + 0x14]
sub eax, ecx
sar eax, 2
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0x1c]
add edx, 0xc
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x4a0c54
mov eax, dword [esp + 0x14]
mov dword [esi], edi
add esi, 4
add eax, 0xc
mov dword [eax + 0x10], esi
jmp 0x4a0c7a
cmp ecx, esi
jbe 0x4a0c5d
call fcn.004c96d9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
push esi
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x48]
push edx
mov eax, ecx
call fcn.0048cc20
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x4a0cd4
mov edi, dword [esp + 0xa4]
mov edx, dword [esp + 0x80]
mov ecx, eax
mov esi, eax
and eax, 0xffff
sar esi, 0x10
mov esi, dword [edi + esi*4]
shl eax, 5
mov eax, dword [esi + eax + 0x10]
mov dword [esp + 0x84], edx
xor edx, edx
cmp ecx, ebx
setne dl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], edx
mov byte [esp + 0x11c], 1
cmp dword [esp + 0xec], ebp
jb 0x4a0cf5
mov eax, dword [esp + 0xd8]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
push 1
lea esi, [esp + 0x48]
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], cx
call fcn.00498730
test eax, eax
jne 0x4a0640
lea eax, [esp + 0x44]
call fcn.00498d10
push 1
lea esi, [esp + 0x48]
call fcn.00498730
test eax, eax
jne 0x4a05e1
lea eax, [esp + 0x44]
call fcn.00498d10
lea ecx, [esp + 0xf0]
call fcn.004016f0
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x120], 0xffffffff
call fcn.004443b0
mov al, 1
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.004c8f08
add esp, 0x10c
ret