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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
test byte [0x6d4af4], 1
je 0x4763c9
cmp dword [0x6d4af8], 0
setne al
and al, 1
mov byte [esp + 0x147], al
jmp 0x4768a8
mov eax, 0x56ec44
mov eax, dword [eax]
pushfd
mov ecx, 0x3715511b
xor ecx, 0x3715518f
popfd
lea edx, [esp + 0xb0]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x94
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ecx
call fcn.00449fe0
mov dword [esp + 0xb0], 0x94
cmp dword [0x6d9c18], 0
je 0x476440
call fcn.004768c0
mov ecx, esp
lea edx, [esp + 0xb0]
mov dword [ecx], edx
call eax
sub esp, 4
mov dword [esp + 0x78], eax
jmp 0x476445
jmp 0x476445
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xac], eax
cmp dword [esp + 0xac], 6
jb 0x476736
mov dword [esp + 0xa8], 0
cmp dword [0x6da8e8], 0
je 0x4764b7
mov eax, dword [0x6da8e8]
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x74], eax
call ecx
mov ecx, esp
lea edx, [esp + 0xa8]
mov dword [ecx + 8], edx
mov dword [ecx], eax
mov dword [ecx + 4], 0x2000000
mov eax, dword [esp + 0x74]
call eax
sub esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x4764c5
mov eax, 0
mov dword [esp + 0x70], eax
jmp 0x4764c5
mov eax, dword [esp + 0x70]
cmp eax, 0
je 0x476731
mov dword [esp + 0xa4], 0
cmp dword [0x6d9c50], 0
je 0x47652f
mov eax, dword [0x6d9c50]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
mov esi, esp
lea edi, [esp + 0xa4]
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ecx
mov dword [esi], edx
mov dword [esi + 8], 0
mov dword [esi + 4], 0x19
call eax
sub esp, 0x14
mov dword [esp + 0x6c], eax
jmp 0x476534
jmp 0x476534
cmp dword [esp + 0xa4], 0
je 0x4766fe
mov eax, dword [esp + 0xa4]
mov ecx, 0x3ffff
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0xa0]
call fcn.00478d10
sub esp, 4
cmp dword [0x6da6d8], 0
mov dword [esp + 0x68], eax
je 0x4765e2
mov eax, dword [0x6db7a4]
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0xa0]
mov dword [esp + 0x64], ecx
mov ecx, edx
mov dword [esp + 0x60], eax
call fcn.00478d70
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xa8]
mov ecx, esp
lea edx, [esp + 0xa4]
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 0xc], edx
mov esi, dword [esp + 0x5c]
mov dword [ecx + 8], esi
mov dword [ecx], eax
mov dword [ecx + 4], 0x19
mov eax, dword [esp + 0x60]
call eax
sub esp, 0x14
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
jmp 0x4765f0
mov eax, 0
mov dword [esp + 0x54], eax
jmp 0x4765f0
mov eax, dword [esp + 0x54]
cmp eax, 0
je 0x4766f2
lea ecx, [esp + 0xa0]
call fcn.00478d70
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
cmp dword [0x6da61c], 0
je 0x47665f
mov eax, dword [0x6da61c]
mov ecx, dword [esp + 0x90]
call fcn.004768d0
mov edx, esp
lea esi, [esp + 0x94]
mov dword [edx + 4], esi
mov dword [edx], ecx
call eax
sub esp, 8
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
jmp 0x47666d
mov eax, 0
mov dword [esp + 0x48], eax
jmp 0x47666d
mov eax, dword [esp + 0x48]
push ecx
mov ecx, 0x73b5fbda
xor ecx, 0x73b5fbda
cmp eax, ecx
pop ecx
je 0x4766ed
lea eax, [0x6d4b10]
mov ecx, dword [esp + 0x94]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044a075
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
cmp eax, 0
je 0x4766de
lea eax, [0x6d4b3e]
mov ecx, dword [esp + 0x94]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044a075
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
cmp eax, 0
jne 0x4766e8
mov dword [0x6d4af8], 1
jmp 0x4766ed
jmp 0x4766f2
lea ecx, [esp + 0xa0]
call fcn.00478f10
cmp dword [0x6db6d0], 0
je 0x47672c
mov eax, dword [0x6db6d0]
mov ecx, dword [esp + 0xa8]
mov edx, esp
mov dword [edx], ecx
call eax
sub esp, 4
mov dword [esp + 0x3c], eax
jmp 0x476731
jmp 0x476731
jmp 0x47688b
mov eax, dword [0x6cf218]
mov dword [esp + 0x88], eax
mov cx, word [0x6cf21c]
mov word [esp + 0x8c], cx
cmp dword [0x6dae10], 0
je 0x4767c6
lea eax, [esp + 0x84]
mov ecx, dword [0x6da354]
mov edx, esp
call fcn.004768e0
lea eax, [esp + 0x88]
call fcn.004768f0
mov dword [edx + 0x24], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x14], 0
call fcn.00476900
call fcn.00476910
call fcn.00476920
call fcn.00476930
call ecx
sub esp, 0x2c
mov dword [esp + 0x38], eax
jmp 0x4767d4
mov eax, 0
mov dword [esp + 0x38], eax
jmp 0x4767d4
mov eax, dword [esp + 0x38]
cmp eax, 0
je 0x476886
cmp dword [0x6db51c], 0
je 0x476822
call fcn.00476940
mov ecx, dword [esp + 0x84]
mov edx, esi
mov edx, esp
call fcn.00476950
mov dword [edx + 8], 0x6d4af8
call fcn.00476960
call eax
sub esp, 0xc
mov dword [esp + 0x34], eax
jmp 0x476830
mov eax, 0
mov dword [esp + 0x34], eax
jmp 0x476830
mov eax, dword [esp + 0x34]
push edx
mov edx, 0x3254b85b
xor edx, 0x3254b85b
cmp eax, edx
pop edx
jne 0x476853
mov dword [0x6d4af8], 0
cmp dword [0x6db660], 0
je 0x476881
call fcn.00476970
mov ecx, dword [esp + 0x84]
mov edx, esp
mov dword [edx], ecx
call eax
sub esp, 4
mov dword [esp + 0x30], eax
jmp 0x476886
jmp 0x476886
jmp 0x47688b
mov byte [0x6d4af4], 1
cmp dword [0x6d4af8], 0
setne al
and al, 1
mov byte [esp + 0x147], al
mov al, byte [esp + 0x147]
and al, 1
movzx eax, al
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret