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

Disassembly:
push 0xffffffffffffffff
push 0x4a9e3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0050d46e
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], edi
call fcn.0050d46e
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call fcn.0050d46e
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call fcn.0050d46e
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 3
call fcn.004c5a38
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 4
call fcn.0050d46e
lea ecx, [esp + 0x30]
mov byte [esp + 0x12c], 5
call fcn.0050d46e
push edi
lea ecx, [esp + 0xf4]
mov byte [esp + 0x130], 6
call fcn.004b3b78
push edi
lea ecx, [esp + 0x118]
mov byte [esp + 0x130], 7
call fcn.004b3b78
lea ecx, [esp + 0x58]
mov byte [esp + 0x12c], 8
call fcn.004af1d8
mov edx, dword [0x4de8b0]
push edi
lea eax, [esp + 0x20]
push edi
lea ecx, [esp + 0x28]
push eax
mov bl, 9
push ecx
lea ecx, [edx + 0x110]
mov byte [esp + 0x13c], bl
call fcn.00479dc8
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
mov eax, dword [ebp + 4]
cmp dword [eax + 0x58], 1
jne 0x4a75d2
mov edx, dword [eax + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0eb8
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x134], 0xa
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x2c]
mov byte [esp + 0x134], bl
call fcn.004c5ab8
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x134], 0xb
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x2c]
mov byte [esp + 0x134], bl
call fcn.004c5ab8
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x3c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4d144c
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.004c5a98
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 0xc
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call fcn.0050d468
mov eax, dword [0x4de8b0]
push 1
push 1
mov edx, dword [eax + 0x110]
lea ecx, [eax + 0x110]
call dword [edx + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x20]
call fcn.00470bf8
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x4d8880
call fcn.0050d618
mov eax, dword [ebp + 4]
push ecx
mov byte [esp + 0x148], 0xd
mov ecx, esp
mov dword [esp + 0x12c], esp
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x58]
push edx
push 8
push eax
push ecx
mov ecx, ebp
call fcn.004a2258
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], bl
push ecx
mov ecx, ebp
call fcn.004a2e38
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 0xe
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call fcn.0050d468
mov edx, dword [0x4de8b0]
push 1
push edi
mov eax, dword [edx + 0x110]
lea ecx, [edx + 0x110]
call dword [eax + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0050d48c
push edi
lea ecx, [esp + 0x1c]
call fcn.0050d492
mov cl, byte [esp + 0x47]
mov esi, eax
mov byte [esp + 0x48], cl
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x4c]
push edi
mov dword [esp + 0x18], edi
call dword [fcn.004b4614]
test al, al
je 0x4a77be
mov ecx, edi
mov edi, dword [esp + 0x4c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call dword [fcn.004b4604]
lea ecx, [esp + 0xf0]
push 1
lea edx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x138], 0xf
call fcn.004af268
and eax, 0xff
mov byte [esp + 0x12c], bl
mov edi, eax
mov eax, dword [esp + 0x4c]
xor ebx, ebx
cmp eax, ebx
je 0x4a7813
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4a780a
cmp al, 0xff
je 0x4a780a
dec al
mov byte [ecx], al
jmp 0x4a7813
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.0050d48c
cmp edi, ebx
je 0x4a7843
lea ecx, [esp + 0xf0]
call fcn.004b4318
xor ecx, ecx
cmp eax, 7
sete cl
mov edi, ecx
cmp edi, ebx
jne 0x4a7851
push 0x4d15dc
jmp 0x4a7848
push 0x4d13b4
lea ecx, [esp + 0x34]
call fcn.0050d47a
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0xf4]
push edx
push eax
mov ecx, ebp
call fcn.004a23a8
and edi, eax
jne 0x4a7a29
mov esi, dword [esp + 0x134]
cmp esi, ebx
je 0x4a78a7
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0050d5e8
lea edx, [esp + 0x30]
lea ecx, [esi + 4]
push edx
call fcn.0050d5e8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x130], 0x12
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0x130], 0x11
call dword [fcn.004b461c]
mov eax, dword [esp + 0xb4]
mov byte [esp + 0x12c], 0x10
cmp eax, ebx
je 0x4a7939
mov eax, dword [esp + 0x94]
push ebx
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x98], eax
call fcn.004953a8
mov eax, dword [esp + 0xb4]
dec eax
mov dword [esp + 0xb4], eax
je 0x4a7924
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
cmp eax, ecx
jne 0x4a7930
lea ecx, [esp + 0x88]
call fcn.004951f8
cmp dword [esp + 0xb4], ebx
jne 0x4a78e8
mov eax, dword [esp + 0x84]
mov byte [esp + 0x12c], 8
cmp eax, ebx
je 0x4a7980
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x84]
add ecx, 4
dec eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x84], eax
je 0x4a796e
cmp ecx, dword [esp + 0x60]
jne 0x4a7977
lea ecx, [esp + 0x58]
call fcn.004951f8
cmp dword [esp + 0x84], ebx
jne 0x4a794c
lea ecx, [esp + 0x114]
mov byte [esp + 0x12c], 7
call fcn.004b4098
lea ecx, [esp + 0xf0]
mov byte [esp + 0x12c], 6
call fcn.004b4098
lea ecx, [esp + 0x30]
mov byte [esp + 0x12c], 0x13
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 4
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 3
call fcn.004c5a78
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0
call fcn.0050d468
lea ecx, [esp + 0x20]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4a7cd0
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x134]
cmp esi, ebx
mov dword [edx + 0x8d4], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
je 0x4a7a7b
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0050d5e8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 4]
call fcn.0050d5e8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0x130], 0x16
call dword [fcn.004b461c]
mov eax, dword [esp + 0xbc]
cmp eax, ebx
je 0x4a7aba
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4a7ab1
cmp al, 0xff
je 0x4a7ab1
dec al
mov byte [ecx], al
jmp 0x4a7aba
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xbc], ebx
cmp eax, ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov byte [esp + 0x12c], 0x14
je 0x4a7b33
mov eax, dword [esp + 0x94]
push ebx
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x98], eax
call fcn.004953a8
mov eax, dword [esp + 0xb4]
dec eax
mov dword [esp + 0xb4], eax
je 0x4a7b1e
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
cmp edx, eax
jne 0x4a7b2a
lea ecx, [esp + 0x88]
call fcn.004951f8
cmp dword [esp + 0xb4], ebx
jne 0x4a7ae2
mov eax, dword [esp + 0x84]
mov byte [esp + 0x12c], 8
cmp eax, ebx
je 0x4a7c2c
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x84]
add ecx, 4
dec eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x84], eax
je 0x4a7b74
mov eax, ecx
mov ecx, dword [esp + 0x60]
cmp eax, ecx
jne 0x4a7c1f
mov ecx, dword [esp + 0x68]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x68], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0x88]
add esp, 4
cmp eax, ebx
jne 0x4a7bdf
lea ecx, [esp + 0x48]
call fcn.004952b8
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x5c], eax
push ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], esi
call fcn.0050d474
add esp, 4
jmp 0x4a7c1f
mov eax, dword [esp + 0x68]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x108]
call fcn.004952c8
mov edx, dword [esp + 0x100]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
cmp dword [esp + 0x84], ebx
jne 0x4a7b4a
lea ecx, [esp + 0x114]
mov byte [esp + 0x12c], 7
call fcn.004b4098
lea ecx, [esp + 0xf0]
mov byte [esp + 0x12c], 6
call fcn.004b4098
lea ecx, [esp + 0x30]
mov byte [esp + 0x12c], 0x17
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 4
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 3
call fcn.004c5a78
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0
call fcn.0050d468
lea ecx, [esp + 0x20]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0050d468
mov eax, edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret 4