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

Disassembly:
push 0xffffffffffffffff
push 0x4e2229
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 [0x5156cc]
add eax, 0xfffffff0
call fcn.004012d0
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.00421490
mov ecx, edi
call fcn.00421540
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x410340
lea edx, [eax - 1]
cmp edx, ebx
jl 0x410381
cmp edx, eax
jg 0x410381
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x410340
cmp ax, 0x2f
je 0x410340
mov edx, 0x4f09a4
call fcn.00413750
mov eax, dword [0x5156cc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004012d0
add eax, 0x10
mov dword [esi], eax
call fcn.00410150
cmp eax, ebx
je 0x4103ed
lea eax, [esp + 0x14]
push eax
call fcn.004100a0
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x4103cd
jge 0x41038b
push 0x80070057
call fcn.00401340
movzx ebp, word [eax]
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
cmp esi, ebx
jg 0x4103a1
push 0x80070057
call fcn.00401340
cmp dword [eax - 4], 1
jle 0x4103b0
mov ecx, esi
push ecx
push edi
call fcn.00401180
cmp esi, ebx
mov eax, dword [edi]
mov word [eax], bp
jl 0x410381
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x410381
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 0x4103ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x44], ebx
je 0x4105a7
lea ecx, [esp + 0x2c]
push 0x5157b8
push ecx
mov ebx, 0x4f09d4
call fcn.00413810
lea edx, [esp + 0x30]
push 0x5157bc
push edx
mov ebx, eax
mov dword [esp + 0x48], 2
call fcn.00416a70
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, 0x4f09d4
mov byte [esp + 0x50], 3
call fcn.00413810
lea ecx, [esp + 0x38]
push 0x5157c0
push ecx
mov ebx, eax
mov byte [esp + 0x58], 4
call fcn.00416a70
push eax
lea edx, [esp + 0x40]
push edx
mov ebx, 0x4f09d4
mov byte [esp + 0x60], 5
call fcn.00413810
lea ecx, [esp + 0x3c]
push 0x5157c4
push ecx
mov ebx, eax
mov byte [esp + 0x68], 6
call fcn.00416a70
push eax
lea edx, [esp + 0x78]
push edx
mov ebx, 0x4f09a4
mov byte [esp + 0x70], 7
call fcn.00413810
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.00405fb0
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 0x4104c9
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 0x4104ee
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 0x410513
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 0x410538
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 0x41055d
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 0x410582
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 0x4105a7
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