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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov esi, dword [ebp + 8]
mov eax, dword [0x94bccc]
test eax, eax
je 0x485f91
mov dword [esp + 0x40], 2
mov dword [esp + 0x50], 0
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [esp + 0x9c]
lea ebx, [esp + 0x24]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x34], edx
cmp dword [edx + 0x38], edi
jbe 0x4864ef
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x34]
test edx, edx
je 0x4864ef
imul esi, edi, 0xf0
mov eax, dword [edx + esi]
xor eax, 3
or eax, dword [edx + esi + 4]
je 0x4864ef
add edx, esi
cmp dword [edx + 0xcc], ecx
jne 0x4864ef
mov eax, dword [esp + 4]
add eax, dword [edx + 0xd8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov ebx, dword [edx]
mov dword [esp + 4], eax
xor ebx, 3
or ebx, dword [edx + 4]
je 0x4864e5
cmp dword [edx + 0xcc], ecx
jne 0x4864e5
mov eax, dword [esp + 4]
xor ebx, ebx
cmp eax, dword [edx + 0xd4]
mov eax, 0xff
setne bl
cmovae eax, ebx
test al, al
je 0x4863e7
movzx eax, al
cmp eax, 1
jne 0x48632b
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov eax, dword [edx]
xor eax, 3
or eax, dword [edx + 4]
je 0x4864e5
cmp dword [edx + 0xcc], ecx
jne 0x4864e5
movzx eax, byte [edx + 0x20]
add al, 0xfa
movzx esi, al
cmp al, 6
mov eax, 6
cmovb eax, esi
cmp al, 6
ja 0x485f51
movzx eax, al
mov esi, 0x54
bt esi, eax
jb 0x4863e7
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov eax, dword [edx]
xor eax, 3
or eax, dword [edx + 4]
je 0x486531
cmp dword [edx + 0xcc], ecx
jne 0x486531
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x98]
mov dword [edx + 0xd4], eax
mov edx, dword [ebp + 8]
call fcn.00486c30
jmp 0x4863e7
movzx eax, byte [0x94a278]
test al, al
je 0x485e3d
movzx eax, al
mov ebx, edx
cmp eax, 1
je 0x485fc9
cmp eax, 2
je 0x486011
mov ecx, 0x94a270
call fcn.007d3740
test al, al
je 0x485e3d
movzx eax, al
cmp eax, 2
je 0x486011
mov eax, dword [0x94a270]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x485e3d
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x486001
mov edi, esi
mov esi, dword [ecx + 8]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
mov esi, edi
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
je 0x485e3d
mov eax, dword [0x94a270]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x486577
mov edi, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [eax + 0x28]
mov dword [esp + 0xdc], edi
mov dword [esp + 0x90], edi
mov edi, dword [esi + 4]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], edx
mov dword [esp + 0x34], edx
mov edx, dword [esi + 8]
mov dword [esp + 0xe8], eax
mov dword [esp + 0x94], eax
mov eax, dword [esi]
mov dword [esp + 0xec], 0
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edx
mov dword [esp + 4], edi
cmp dword [eax + 0x38], edi
jbe 0x48658b
mov eax, dword [eax + 0x34]
test eax, eax
je 0x48658b
imul esi, dword [esp + 4], 0xf0
mov edi, dword [eax + esi]
xor edi, 3
or edi, dword [eax + esi + 4]
je 0x48658b
add eax, esi
cmp dword [eax + 0xcc], edx
jne 0x48658b
mov edi, dword [esp + 0x34]
mov dword [esp + 0x8c], edx
lea edx, [eax + 0xcc]
cmp ecx, 1
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], edx
jbe 0x486577
mov edx, dword [esp + 0x90]
mov esi, dword [esp + 0x94]
cmp ecx, 2
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], edi
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], 1
je 0x486577
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 4]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], 2
mov esi, dword [esp + 0xa8]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xa4], edx
mov edi, dword [eax]
xor edi, 3
or edi, dword [eax + 4]
je 0x486594
cmp dword [esi], edx
jne 0x486594
add ebx, dword [eax + 0xd8]
mov edi, dword [esp + 0x88]
cmp ecx, 3
mov dword [esp + 0xb0], ebx
jbe 0x486577
mov edx, dword [esp + 0x90]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], 3
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov ecx, dword [eax]
xor ecx, 3
or ecx, dword [eax + 4]
je 0x4865c5
cmp dword [esi], edx
jne 0x4865c5
lea edx, [esp + 0xdc]
lea ebx, [esp + 0xac]
lea esi, [esp + 0xf0]
add eax, 0xd4
lea ecx, [edi + 0x1c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 0x826e40
mov dword [esp + 0x64], esi
lea ebx, [esp + 0x9c]
lea esi, [esp + 0xb4]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x826e60
mov dword [esp + 0x70], esi
lea ebx, [esp + 0xb0]
lea esi, [esp + 0x20]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x81c654
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x84], 0x826e60
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 4
mov dword [esp + 0xd8], ecx
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x48646f
mov dword [esp + 0x18], edi
mov ebx, edi
cmp dword [0x94bcc0], 0
mov esi, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov edi, dword [0x94bcc8]
lea eax, [esp + 0xd0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
je 0x4864a9
mov eax, dword [edi + 8]
lea ecx, [esp + 8]
dec eax
and eax, 0xfffffff8
lea eax, [eax + esi + 8]
push ecx
push eax
call dword [edi + 0x1c]
add esp, 8
lock inc dword [esi]
jle 0x486617
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], eax
mov eax, dword [edi + 8]
dec eax
and eax, 0xfffffff8
lea esi, [eax + esi + 8]
jmp 0x4864d1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov eax, dword [edx]
xor eax, 3
or eax, dword [edx + 4]
je 0x486531
cmp dword [edx + 0xcc], ecx
jne 0x486531
mov eax, dword [esp + 4]
mov dword [edx + 0xd4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
cmp dword [eax + 0x38], edi
jbe 0x4864e5
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4864e5
mov edx, dword [eax + esi]
xor edx, 3
or edx, dword [eax + esi + 4]
je 0x4864e5
add eax, esi
cmp dword [eax + 0xcc], ecx
jne 0x4864e5
mov esi, dword [eax + 0x3c]
xor edx, edx
test esi, esi
cmovg edx, esi
sub edx, dword [esp + 4]
jbe 0x4863e7
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov esi, dword [eax]
xor esi, 3
or esi, dword [eax + 4]
je 0x486531
cmp dword [eax + 0xcc], ecx
jne 0x486531
mov ecx, dword [eax + 0x3c]
mov esi, dword [ebp + 0xc]
sub ecx, edx
jo 0x4863d4
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x98]
push esi
push dword [ebp + 8]
call fcn.00486620
add esp, 8
mov eax, dword [esp + 0x40]
cmp eax, 2
je 0x486467
test eax, eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
je 0x486407
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
lea edx, [esp + 0x38]
push edx
push ecx
call dword [eax + 0x34]
add esp, 8
mov edx, dword [esp + 0x40]
cmp edx, 2
je 0x486467
test edx, edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
je 0x48643b
mov edi, dword [edx + 8]
dec edi
and edi, 0xfffffff8
lea esi, [edi + esi + 8]
push ecx
push eax
push esi
call dword [edx + 0x40]
add esp, 0xc
mov eax, dword [esp + 0x40]
cmp eax, 2
je 0x486467
test eax, eax
je 0x486467
mov eax, dword [esp + 0x44]
lock dec dword [eax]
jne 0x486467
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
call fcn.0075aba0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0xdead
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
mov dword [esp + 0x48], 0x93b6a0
mov esi, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
mov edi, 0x93b6a0
mov dword [esp + 0x50], eax
jmp 0x4864d1
lea eax, [esp + 8]
push eax
push esi
call dword [edi + 0x1c]
add esp, 8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], ebx
lea eax, [esp + 0x38]
push eax
push esi
call dword [edi + 0x30]
add esp, 8
mov esi, dword [ebp + 8]
jmp 0x485e4d
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
jmp 0x4864f3
mov dword [esp + 8], ebx
lea eax, [esp + 8]
lea ecx, [esp + 0x58]
mov edx, 0x828158
mov dword [esp + 0x58], 0x828150
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0xc], 0x47c5e0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 1
call fcn.007c1b50
lea ecx, [esp + 8]
lea eax, [esp + 0x24]
mov dword [esp + 0x58], 0x828150
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], 0
mov edx, 0x828168
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x47c5e0
mov dword [esp + 0x64], 1
call fcn.007c1b50
mov ecx, 0x8a6758
mov edx, 0x22
push 0x826e50
call fcn.007c2000
lea eax, [esp + 0xb8]
jmp 0x48659b
lea eax, [esp + 0xa4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x828150
mov dword [esp + 0xc], 1
mov dword [esp + 0x24], 0x47c5e0
mov dword [esp + 0x18], 0
jmp 0x4865fd
lea eax, [esp + 0xcc]
mov dword [esp + 8], 0x828150
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0x47c5e0
lea eax, [esp + 0xa0]
lea ecx, [esp + 8]
mov edx, 0x828158
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
call fcn.007c1b50
ud2