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

Disassembly:
push 0xffffffffffffffff
push 0x479b9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.0053be96
xor edi, edi
mov dword [esp + 0xac], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edi
push 0x100000
lea ecx, [esp + 0x20]
mov byte [esp + 0xb0], 1
call fcn.0053bea9
test al, al
jne 0x582ae3
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 2
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x582aa8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 3
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x582b63
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x8007000e
jmp 0x583109
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x1c]
push eax
call fcn.0053bef8
lea ecx, [esp + 0x1c]
call fcn.0053bf07
push 0x100000
lea ecx, [esp + 0x44]
call fcn.0053cd8a
test al, al
jne 0x582b6d
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 4
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x582b36
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 5
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x582b63
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x8007000e
jmp 0x583109
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x40]
push eax
call fcn.0053cdd5
lea ecx, [esp + 0x40]
call fcn.0053cde4
mov al, byte [ebp + 0x18]
mov cl, al
and ecx, 0x1f
mov ebx, ecx
cmp ebx, 9
mov dword [esp + 0x74], ebx
jl 0x5830b0
cmp ebx, 0x10
jg 0x5830b0
mov esi, 1
shr al, 7
shl esi, cl
mov byte [esp + 0x13], al
mov eax, dword [ebp + 0x1c]
cmp ebx, eax
mov dword [esp + 0x70], esi
jne 0x582bd3
cmp dword [ebp + 0xc], edi
je 0x582bd3
cmp dword [ebp + 0x10], edi
je 0x582bd3
cmp dword [ebp + 0x14], edi
jne 0x582d26
mov ecx, ebp
call fcn.005829c4
lea ecx, [esi + esi]
call fcn.005864a4
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x582c4b
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 8
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x582c10
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 9
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x582d19
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x583109
mov ecx, esi
call fcn.005864a4
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x582cb7
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0xa
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x582c80
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0xb
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x582d19
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x583109
mov ecx, esi
call fcn.005864a4
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x582d23
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0xc
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x582cec
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0xd
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x582d19
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x583109
mov dword [ebp + 0x1c], ebx
mov cl, byte [esp + 0x13]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x68], edi
test cl, cl
setne dl
mov word [eax + 0x200], di
mov ecx, dword [ebp + 0x10]
add edx, 0x100
mov dword [esp + 0x6c], edi
mov ebx, 9
mov dword [esp + 0x18], edx
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], edi
mov byte [ecx + 0x100], 0
cmp dword [esp + 0x14], edi
jne 0x582e73
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub edx, eax
cmp edx, ebx
jb 0x582da2
test ebx, ebx
jbe 0x582d9a
mov ecx, ebx
mov esi, eax
mov edx, ecx
lea edi, [esp + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, ebx
mov dword [esp + 0x1c], eax
jmp 0x582dd2
xor esi, esi
test ebx, ebx
jbe 0x582dd2
cmp eax, dword [esp + 0x20]
jb 0x582dbf
lea ecx, [esp + 0x1c]
call fcn.0053bf1b
test al, al
je 0x582dd4
mov eax, dword [esp + 0x1c]
mov cl, byte [eax]
inc eax
mov byte [esp + esi + 0x90], cl
inc esi
cmp esi, ebx
mov dword [esp + 0x1c], eax
jb 0x582da8
mov esi, ebx
lea edx, [esi*8]
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], edx
xor edi, edi
call fcn.0053cdfc
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x88], eax
test ecx, ecx
mov dword [esp + 0x8c], edx
je 0x582e73
mov esi, dword [esp + 0x68]
mov ecx, eax
sub ecx, esi
mov esi, edx
sbb esi, dword [esp + 0x6c]
mov dword [esp + 0x7c], esi
jne 0x582e1f
cmp ecx, 0x40000
jb 0x582e73
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x6c], edx
cdq
add eax, esi
adc edx, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x84], edx
lea edx, [esp + 0x88]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x84]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jne 0x582fc6
mov edx, 1
mov ecx, ebx
shl edx, cl
mov eax, edi
xor ecx, ecx
shr eax, 3
mov cl, byte [esp + eax + 0x90]
mov dword [esp + 0x78], edx
xor edx, edx
mov dh, byte [esp + eax + 0x92]
mov dl, byte [esp + eax + 0x91]
mov eax, dword [esp + 0x78]
shl edx, 8
or edx, ecx
mov ecx, edi
and ecx, 7
add edi, ebx
shr edx, cl
mov ecx, dword [esp + 0x14]
dec eax
and eax, edx
cmp edi, ecx
mov dword [esp + 0x3c], eax
ja 0x582ffa
cmp eax, dword [esp + 0x18]
jae 0x583060
mov cl, byte [esp + 0x13]
test cl, cl
je 0x582ef9
cmp eax, 0x100
jne 0x582ef9
xor edi, edi
mov ebx, 9
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x101
mov byte [esp + 0x12], 0
jmp 0x582d65
mov eax, dword [esp + 0x3c]
xor esi, esi
cmp eax, 0x100
jb 0x582f26
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
inc esi
mov cl, byte [eax + ecx]
mov byte [esi + edx - 1], cl
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [edx + eax*2]
mov eax, ecx
cmp eax, 0x100
jae 0x582f06
mov edx, dword [ebp + 0x14]
mov cl, byte [esp + 0x12]
mov byte [esi + edx], al
inc esi
test cl, cl
je 0x582f4e
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov byte [ecx + edx - 1], al
mov edx, dword [esp + 0x3c]
dec ecx
cmp edx, ecx
jne 0x582f4e
mov ecx, dword [ebp + 0x14]
mov byte [ecx], al
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x40]
dec esi
mov al, byte [esi + edx]
mov edx, dword [esp + 0x44]
mov byte [edx + ecx], al
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jne 0x582f7a
lea ecx, [esp + 0x40]
call fcn.0053ced1
test esi, esi
jg 0x582f4e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jae 0x582eef
mov ecx, dword [ebp + 0xc]
mov dx, word [esp + 0x3c]
mov byte [esp + 0x12], 1
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jbe 0x582d65
cmp ebx, dword [esp + 0x74]
jge 0x582d65
xor edi, edi
inc ebx
mov dword [esp + 0x14], edi
jmp 0x582d65
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0xe
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
test eax, eax
je 0x582fed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0xac], 0xf
jmp 0x583037
lea ecx, [esp + 0x40]
call fcn.0053ceb5
mov esi, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0x12
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
test eax, eax
je 0x58302c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0xac], 0x13
lea ecx, [esp + 0x1c]
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
test eax, eax
je 0x583059
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
jmp 0x583109
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0x10
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
test eax, eax
je 0x583087
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0x11
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
test eax, eax
je 0x583104
jmp 0x5830fe
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 6
call fcn.0053cdc6
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x5830d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 7
call fcn.0053bee7
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x583104
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 1
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 0x14