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

Disassembly:
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
sbb al, 0x51
mov word [edx + esi*2], 0
call fcn.004a877a
add esp, 8
mov byte [esp + 0x6c], 0xb
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x495255
push esi
lea ecx, [esp + 0x1c]
call fcn.0048df0a
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call 0x4dd3f8
add esp, 8
test esi, esi
jl 0x49566e
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x49566e
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
mov word [ecx + esi*2], 0
call fcn.004a877a
add esp, 8
mov byte [esp + 0x6c], 0xc
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4952c1
push esi
lea ecx, [esp + 0x18]
call fcn.0048df0a
mov edx, dword [esp + 0x14]
lea ecx, [esi + 1]
push ecx
push edx
call 0x4dd3f8
add esp, 8
test esi, esi
jl 0x49566e
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x49566e
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov word [edx + esi*2], 0
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x495520
mov ebp, dword [ebx + 0x23c]
xor esi, esi
test ebp, ebp
jle 0x49534a
mov edi, edi
test esi, esi
jl 0x495669
cmp esi, dword [ebx + 0x23c]
jge 0x495669
mov eax, dword [ebx + 0x238]
mov ebx, dword [eax + esi*4]
mov eax, dword [ebx + 0x1d8]
push edi
push eax
call 0x4dcb85
add esp, 8
test eax, eax
je 0x495423
mov ebx, dword [esp + 0x74]
add esi, 1
cmp esi, ebp
jl 0x49530a
add ebx, 0x25c
push edi
call int.0049708a
test eax, eax
jne 0x4953a2
mov esi, dword [esp + 0x74]
lea ebx, [esi + 0x284]
push edi
call fcn.004970ea
test eax, eax
jne 0x4953a2
lea ebx, [esi + 0x270]
push edi
call fcn.0049714a
test eax, eax
jne 0x4953a2
lea ebx, [esi + 0x248]
push edi
call fcn.004971aa
test eax, eax
jne 0x4953a2
lea ebx, [esi + 0x2ac]
push edi
call fcn.0049720a
test eax, eax
je 0x495658
mov edi, eax
test edi, edi
je fcn.0049551c
call fcn.004bec92
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x49565f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x6c], 0xd
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x49542a
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0048db2a
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 0xe
call fcn.0048e01a
mov byte [esp + 0x6c], 0xd
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4954e3
mov edi, ebx
jmp 0x4953a4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0048db2a
push 0x47b14c
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x84], 0xf
call fcn.0048dbea
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x60]
mov bl, 0x10
push eax
mov byte [esp + 0x90], bl
call fcn.0048db2a
add esp, 0x24
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 0x11
call fcn.0048e01a
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4954a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6c], 0xf
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 0x4954ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6c], 0xd
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4954ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
push esi
mov ecx, edi
call fcn.004b7c5a
lea eax, [esi - 0x10]
mov byte [esp + 0x6c], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg fcn.0049551c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
dec dword [ebx - 0x7ccfdbbc]
sal al, 0x8d
dec eax
or al, 0x83
retf 0xf0ff
jl 0x495621
pop es
sbb eax, ecx
test byte [eax*2 - 0x315f70c5], 0x47
ror byte [ecx], 0x65
sal byte [ebx], 0xa0
jno 0x49565e
pop ecx
jl 0x4956ba
sub dword [eax - 0x55], ecx
dec ebx
xchg ebx, eax
inc edx
aad 0xd0
sbb dword [eax - 0x67a43ffa], eax