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

Disassembly:
push 0xffffffffffffffff
push 0x4e2109
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x5156ec]
add eax, 0xfffffff0
call fcn.004012e0
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x38], ebx
mov ebp, 1
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.00421520
mov ecx, edi
call fcn.00468100
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x410590
lea edx, [eax - 1]
cmp edx, ebx
jl 0x4105d1
cmp edx, eax
jg 0x4105d1
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x410590
cmp ax, 0x2f
je 0x410590
mov edx, 0x4f09a4
call fcn.004139a0
mov eax, dword [0x5156ec]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004012e0
add eax, 0x10
mov dword [esi], eax
call fcn.004103a0
cmp eax, ebx
je 0x41063d
lea eax, [esp + 0x14]
push eax
call fcn.004102f0
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x41061d
jge 0x4105db
push 0x80070057
call fcn.00401350
movzx ebp, word [eax]
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
cmp esi, ebx
jg 0x4105f1
push 0x80070057
call fcn.00401350
cmp dword [eax - 4], 1
jle 0x410600
mov ecx, esi
push ecx
push edi
call fcn.004011a0
cmp esi, ebx
mov eax, dword [edi]
mov word [eax], bp
jl 0x4105d1
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x4105d1
mov dword [eax - 0xc], esi
mov edx, dword [edi]
mov word [edx + esi*2], bx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41063d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], ebx
je 0x4107f7
lea ecx, [esp + 0x2c]
push 0x5157d8
push ecx
mov ebx, 0x4f09d4
call fcn.00413a60
lea edx, [esp + 0x30]
push 0x5157dc
push edx
mov ebx, eax
mov dword [esp + 0x48], 2
call fcn.00416b50
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, 0x4f09d4
mov byte [esp + 0x50], 3
call fcn.00413a60
lea ecx, [esp + 0x38]
push 0x5157e0
push ecx
mov ebx, eax
mov byte [esp + 0x58], 4
call fcn.00416b50
push eax
lea edx, [esp + 0x40]
push edx
mov ebx, 0x4f09d4
mov byte [esp + 0x60], 5
call fcn.00413a60
lea ecx, [esp + 0x3c]
push 0x5157e4
push ecx
mov ebx, eax
mov byte [esp + 0x68], 6
call fcn.00416b50
push eax
lea edx, [esp + 0x78]
push edx
mov ebx, 0x4f09a4
mov byte [esp + 0x70], 7
call fcn.00413a60
add esp, 0x38
mov byte [esp + 0x38], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.004060a0
mov byte [esp + 0x38], 7
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41073e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410788
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8