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

Disassembly:
push 0xffffffffffffffff
push 0x87c870
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 3
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x638f39
mov edi, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
cmp edi, esi
jg 0x638f39
push 0xd
lea ecx, [esp + 0x80]
call fcn.004cc290
push 0x441190
push 0x402308
lea ecx, [esp + 0x84]
call fcn.004aa070
mov ecx, dword [esp + 0x8c]
cmp dword [ecx - 0xc], ebx
jne 0x638a5b
push 0x413454
lea ecx, [esp + 0x90]
call fcn.004a8ed0
push 0x2a
lea ecx, [esp + 0x90]
call fcn.004f6090
lea ecx, [esp + 0x38]
call fcn.00559390
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x78], 4
call fcn.004aa540
mov al, byte [esp + 0x80]
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x40], al
call fcn.004aa540
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x48]
call fcn.004aa540
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x4c]
call fcn.004aa540
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], esi
cmp eax, ebx
jge 0x638b10
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x38]
lea ecx, [ebp + 8]
push edx
mov dword [esp + 0x6c], eax
call fcn.00636e10
mov esi, eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xa8], esi
cmp eax, ebx
jne 0x638b6c
mov eax, dword [esp + 0x88]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 5
call fcn.004f2680
lea edx, [esp + 0x20]
lea ecx, [ebp + 0x18]
push edx
jmp 0x638eff
add ebp, 0x18
mov dword [esp + 0x1c], ebp
cmp dword [ebp + 4], ebx
ja 0x638b82
push 0x80070057
call fcn.004a8210
mov edx, dword [ebp]
mov ecx, dword [esp + 0x88]
cmp ecx, dword [edx]
jg 0x638bcb
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 6
call fcn.004f2680
push 1
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, ebp
call fcn.00637c80
jmp 0x638f04
dec eax
cmp eax, dword [ebp + 4]
jb 0x638bdb
push 0x80070057
call fcn.004a8210
lea eax, [eax + eax*2]
cmp edi, dword [edx + eax*8 + 4]
lea eax, [edx + eax*8]
jl 0x638c09
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov byte [esp + 0x74], 7
jmp 0x638eee
push ebx
mov ecx, ebp
call fcn.00635a80
cmp edi, dword [eax]
jge 0x638c83
push ebx
mov ecx, ebp
call fcn.00635a80
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 8
call fcn.004f2680
push ebx
mov ecx, ebp
call fcn.00635a80
mov edx, dword [eax]
push 1
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, ebp
mov dword [esp + 0x90], edx
call fcn.00637c80
mov eax, dword [esp + 0x28]
mov byte [esp + 0x74], 4
cmp eax, ebx
je 0x638c7c
push eax
call fcn.00803053
add esp, 4
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x80], eax
cmp dword [ecx + 0x1c], ebx
jbe 0x638e8a
mov dword [esp + 0xac], ebx
cmp eax, dword [ebp + 4]
jae 0x638b78
mov esi, dword [ebp]
add esi, dword [esp + 0xac]
mov ecx, dword [esi + 4]
cmp edi, ecx
jge 0x638e5f
mov eax, dword [esi]
cmp dword [esp + 0x88], eax
jle 0x638e83
cmp edi, eax
jle 0x638d32
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
lea edx, [esi + 8]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 9
call fcn.00636240
mov ecx, dword [esp + 0x80]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, ebp
mov dword [esi], edi
call fcn.00637c80
mov eax, dword [esp + 0x28]
mov byte [esp + 0x74], 4
cmp eax, ebx
je 0x638e5f
push eax
call fcn.00803053
add esp, 4
jmp 0x638e5f
mov eax, dword [esp + 0x88]
cmp ecx, eax
jg 0x638d97
mov edx, dword [esi + 0xc]
xor edi, edi
mov dword [esp + 0x18], edx
cmp edi, edx
je 0x638d6b
push edi
lea ecx, [esi + 8]
call fcn.004ed3f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
add ecx, 8
call fcn.00635a60
mov ecx, dword [esp + 0x68]
cmp ecx, dword [eax + 0x30]
jge 0x638d7e
mov edx, dword [esp + 0xa8]
push 1
push edx
push edi
lea ecx, [esi + 8]
call fcn.006362d0
inc edi
cmp edi, dword [esp + 0x18]
jbe 0x638d48
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov ecx, dword [esi]
cmp ecx, eax
jge 0x638e5f
cmp eax, dword [esi + 4]
jge 0x638e5f
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 0xa
call fcn.00636240
mov ecx, dword [esi + 0xc]
xor edi, edi
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x638e08
cmp edi, dword [esp + 0x2c]
jae 0x638b78
mov edx, dword [esp + 0x28]
mov eax, dword [edx + edi*4]
mov ecx, dword [esp + 0x14]
push eax
add ecx, 8
call fcn.00635a60
mov ecx, dword [esp + 0x68]
cmp ecx, dword [eax + 0x30]
jge 0x638e1c
mov edx, dword [esp + 0xa8]
push 1
push edx
push edi
lea ecx, [esp + 0x34]
call fcn.006362d0
inc edi
cmp edi, dword [esp + 0x18]
jbe 0x638ddf
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
mov dword [esi], eax
call fcn.00637c80
mov eax, dword [esp + 0x28]
mov byte [esp + 0x74], 4
cmp eax, ebx
je 0x638e58
push eax
call fcn.00803053
add esp, 4
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
add dword [esp + 0xac], 0x18
inc eax
mov dword [esp + 0x80], eax
cmp eax, dword [ecx + 0x1c]
jb 0x638ca0
mov esi, dword [esp + 0xa8]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
lea ecx, [eax - 1]
cmp ecx, dword [ebp + 4]
jb 0x638ea3
push 0x80070057
call fcn.004a8210
mov edx, dword [ebp]
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*8]
mov ecx, dword [esp + 0x88]
cmp ecx, dword [edi + 4]
jle 0x638f15
dec eax
cmp eax, dword [ebp + 4]
jb 0x638ec8
push 0x80070057
call fcn.004a8210
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x74], 0xb
push esi
lea ecx, [esp + 0x2c]
call fcn.004f2680
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.00636ea0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x638f15
push eax
call fcn.00803053
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00559310
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0x74], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x638f52
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0x74], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x638f5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x74], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x638f86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x74], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x638fad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x74], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x638fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x34