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

Disassembly:
push 0xffffffffffffffff
push 0x438538
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x446d84]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x446d84]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004045d0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x128]
lea edx, [esp + 0x24]
push edx
call eax
xor edi, edi
mov dword [esp + 0x80], edi
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x44], cx
push edi
mov eax, esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], edi
call fcn.00403c40
mov byte [esp + 0x80], 1
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
cmp ecx, 8
jb 0x40525c
mov esi, edx
mov dword [esp + 0x18], esi
cmp edx, edi
je 0x404fac
mov eax, edx
cmp ecx, 8
jae 0x404f92
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x404fac
mov eax, edx
cmp ecx, 8
jae 0x404fa1
lea eax, [esp + 0x40]
mov ebx, dword [esp + 0x50]
lea eax, [eax + ebx*2]
cmp esi, eax
jbe 0x404fbd
call fcn.0041cef1
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
lea ebp, [esp + 0x3c]
mov eax, edx
cmp ecx, 8
jae 0x404fcc
lea eax, [esp + 0x40]
lea edi, [eax + ebx*2]
test edi, edi
je 0x404ff4
mov eax, edx
cmp ecx, 8
jae 0x404fde
lea eax, [esp + 0x40]
cmp eax, edi
ja 0x404ff4
mov eax, edx
cmp ecx, 8
jae 0x404fed
lea eax, [esp + 0x40]
lea eax, [eax + ebx*2]
cmp edi, eax
jbe 0x405005
call fcn.0041cef1
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
cmp ecx, 8
jb 0x40526b
mov esi, edx
test edx, edx
je 0x405035
mov eax, edx
cmp ecx, 8
jae 0x40501f
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x405035
mov eax, edx
cmp ecx, 8
jae 0x40502e
lea eax, [esp + 0x40]
lea ecx, [eax + ebx*2]
cmp esi, ecx
jbe 0x40503a
call fcn.0041cef1
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push ecx
lea edx, [esp + 0x2c]
push edi
push edx
mov ebx, esi
call fcn.0040bcb0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, edx
sub eax, ecx
xor ebx, ebx
sar eax, 2
add esp, 0x18
xor edi, edi
cmp eax, ebx
jbe 0x4051aa
cmp edi, eax
jb 0x405087
call fcn.0041cef1
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + edi*4]
xor ecx, ecx
mov word [esp + 0x5c], cx
mov ebp, 7
mov ecx, eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4050a3
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x5c]
call fcn.00403820
mov byte [esp + 0x80], 2
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x4050d3
lea eax, [esp + 0x5c]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x3c], esp
xor edx, edx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 2
mov eax, 0x43e308
mov word [esi + 4], dx
call fcn.00403820
call fcn.00406dd0
mov eax, dword [esp + 0x60]
add esp, 0x20
cmp dword [esp + 0x54], 8
jae 0x40510c
lea eax, [esp + 0x40]
push eax
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x3c], esp
mov word [esi + 4], ax
push 2
mov eax, 0x43e308
call fcn.00403820
call fcn.00406dd0
mov esi, dword [esp + 0x90]
mov ebp, dword [esp + 0x7c]
add esp, 0x20
mov eax, ebp
cmp esi, 8
jae 0x40514c
lea eax, [esp + 0x5c]
mov ebx, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
call fcn.00408350
cmp eax, 0xffffffff
jne 0x405274
mov byte [esp + 0x80], 1
cmp esi, 8
jb 0x405179
push ebp
call fcn.00410a4f
add esp, 4
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov word [esp + 0x5c], cx
mov ecx, dword [esp + 0x30]
mov eax, edx
sub eax, ecx
inc edi
sar eax, 2
xor ebx, ebx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
cmp edi, eax
jb 0x405087
cmp dword [esp + 0x54], 8
jb 0x4051c6
mov edx, dword [esp + 0x40]
push edx
call fcn.00410a4f
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov dword [esp + 0x80], 0xffffffff
cmp ecx, ebx
je 0x405222
mov edi, edx
mov esi, ecx
cmp ecx, edx
je 0x405219
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40520e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4051f0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00410a4f
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00410a4f
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x70
ret
lea eax, [esp + 0x40]
mov dword [esp + 0x18], eax
mov esi, eax
jmp 0x404f87
lea esi, [esp + 0x40]
jmp 0x405014
mov ebx, 8
mov eax, ebp
cmp esi, ebx
jae 0x405283
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], ebx
jae 0x405292
lea eax, [esp + 0x44]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x40], esp
mov edi, 7
xor ebp, ebp
xor edx, edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebp
push 0x1e
mov eax, str.IsSupportedID_Found_OK_:_s___s
mov word [esi + 4], dx
call fcn.00403820
call fcn.00406dd0
add esp, 0x24
cmp dword [esp + 0x70], ebx
jb 0x4052d6
mov eax, dword [esp + 0x5c]
push eax
call fcn.00410a4f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], cx
cmp dword [esp + 0x54], ebx
jb 0x4052f8
mov edx, dword [esp + 0x40]
push edx
call fcn.00410a4f
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], ax
cmp esi, ebp
je 0x405356
mov eax, dword [esp + 0x34]
mov edi, eax
cmp esi, eax
je 0x40534d
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405342
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x405324
mov esi, dword [esp + 0x30]
push esi
call fcn.00410a4f
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.00410a4f
add esp, 4
mov al, 1
jmp 0x40523d