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

Disassembly:
push 0xffffffffffffffff
push 0x1009df8e
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.0048aacf
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.0048aae2
test al, al
jne 0x5036f3
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 2
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x5036b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 3
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x503773
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x8007000e
jmp 0x503d19
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x1c]
push eax
call fcn.0048ab31
lea ecx, [esp + 0x1c]
call fcn.0048ab40
push 0x100000
lea ecx, [esp + 0x44]
call fcn.0048c5cb
test al, al
jne 0x50377d
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 4
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x503746
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 5
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x503773
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 0x8007000e
jmp 0x503d19
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x40]
push eax
call fcn.0048c616
lea ecx, [esp + 0x40]
call fcn.0048c625
mov al, byte [ebp + 0x18]
mov cl, al
and ecx, 0x1f
mov ebx, ecx
cmp ebx, 9
mov dword [esp + 0x74], ebx
jl 0x503cc0
cmp ebx, 0x10
jg 0x503cc0
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 0x5037e3
cmp dword [ebp + 0xc], edi
je 0x5037e3
cmp dword [ebp + 0x10], edi
je 0x5037e3
cmp dword [ebp + 0x14], edi
jne 0x503936
mov ecx, ebp
call fcn.005035d4
lea ecx, [esi + esi]
call fcn.00507994
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x50385b
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 8
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x503820
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 9
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x503929
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x503d19
mov ecx, esi
call fcn.00507994
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x5038c7
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0xa
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x503890
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0xb
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x503929
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x503d19
mov ecx, esi
call fcn.00507994
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x503933
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0xc
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x5038fc
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0xd
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x503929
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x503d19
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 0x503a83
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub edx, eax
cmp edx, ebx
jb 0x5039b2
test ebx, ebx
jbe 0x5039aa
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 0x5039e2
xor esi, esi
test ebx, ebx
jbe 0x5039e2
cmp eax, dword [esp + 0x20]
jb 0x5039cf
lea ecx, [esp + 0x1c]
call fcn.0048ab54
test al, al
je 0x5039e4
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 0x5039b8
mov esi, ebx
lea edx, [esi*8]
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], edx
xor edi, edi
call fcn.0048c63d
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x88], eax
test ecx, ecx
mov dword [esp + 0x8c], edx
je 0x503a83
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 0x503a2f
cmp ecx, 0x40000
jb 0x503a83
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 0x503bd6
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 0x503c0a
cmp eax, dword [esp + 0x18]
jae 0x503c70
mov cl, byte [esp + 0x13]
test cl, cl
je 0x503b09
cmp eax, 0x100
jne 0x503b09
xor edi, edi
mov ebx, 9
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x101
mov byte [esp + 0x12], 0
jmp 0x503975
mov eax, dword [esp + 0x3c]
xor esi, esi
cmp eax, 0x100
jb 0x503b36
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 0x503b16
mov edx, dword [ebp + 0x14]
mov cl, byte [esp + 0x12]
mov byte [esi + edx], al
inc esi
test cl, cl
je 0x503b5e
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 0x503b5e
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 0x503b8a
lea ecx, [esp + 0x40]
call fcn.0048c713
test esi, esi
jg 0x503b5e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jae 0x503aff
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 0x503975
cmp ebx, dword [esp + 0x74]
jge 0x503975
xor edi, edi
inc ebx
mov dword [esp + 0x14], edi
jmp 0x503975
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0xe
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
test eax, eax
je 0x503bfd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0xac], 0xf
jmp 0x503c47
lea ecx, [esp + 0x40]
call fcn.0048c6f7
mov esi, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0x12
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
test eax, eax
je 0x503c3c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0xac], 0x13
lea ecx, [esp + 0x1c]
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
test eax, eax
je 0x503c69
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
jmp 0x503d19
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0x10
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
test eax, eax
je 0x503c97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0x11
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
test eax, eax
je 0x503d14
jmp 0x503d0e
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 6
call fcn.0048c607
mov eax, dword [esp + 0x54]
mov byte [esp + 0xac], 0
cmp eax, edi
je 0x503ce7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 7
call fcn.0048ab20
mov eax, dword [esp + 0x28]
mov dword [esp + 0xac], 0xffffffff
cmp eax, edi
je 0x503d14
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