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

Disassembly:
mov eax, 0xc4
call fcn.005336e0
mov eax, dword [0x5ca1e0]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
push ebx
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xec]
push ebp
mov ebp, dword [esp + 0xec]
push esi
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x60], eax
xor eax, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x100]
mov edi, esi
lea eax, [esp + 0x78]
shr edi, 3
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x70], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x74], edi
mov dword [esp + 0x24], 2
call fcn.0041ea50
add esp, 4
test ebx, ebx
jne 0x4a9874
cmp esi, 0xa0
jne 0x4a9854
call fcn.0042c780
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x4a9874
cmp esi, 0xe0
jne 0x4a9869
call fcn.0042c7e0
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x4a9874
call fcn.0042c7f0
mov ebx, eax
mov dword [esp + 0x24], eax
push ebx
call fcn.0040faa0
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x40], eax
je 0x4a989b
cmp dword [ecx + 0x10], 0
je 0x4a989b
cmp dword [esp + 0xf0], 0
jl 0x4a990d
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4a98a9
mov esi, eax
mov dword [esp + 0x14], esi
push 0x1bb
push 0x594904
push esi
call fcn.004205f0
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x4a98cc
mov dword [esp + 0x28], ebp
jmp 0x4a98e3
push 0x1c0
push 0x594904
push esi
call fcn.004205f0
add esp, 0xc
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x4aa05d
cmp dword [esp + 0x28], 0
je 0x4aa04c
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4a990d
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.005303b0
add esp, 0xc
call fcn.004240e0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4aa04c
call fcn.0046a160
mov dword [esp + 0x34], eax
test eax, eax
je 0x4aa04c
mov esi, dword [esp + 0x18]
push esi
call fcn.00424170
push esi
call fcn.00424200
mov ebp, eax
push esi
mov dword [esp + 0x50], ebp
call fcn.00424200
push esi
mov dword [esp + 0x58], eax
call fcn.00424200
push esi
mov dword [esp + 0x64], eax
call fcn.00424200
push esi
mov dword [esp + 0x80], eax
call fcn.00424200
push esi
mov dword [esp + 0x7c], eax
call fcn.00424200
mov edx, dword [esp + 0x54]
mov ebx, eax
mov eax, dword [edx + 0xc]
add esp, 0x1c
mov dword [esp + 0x4c], ebx
test eax, eax
je 0x4a99c4
mov ecx, edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4a99c4
mov ebx, dword [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x2c], ecx
test ebx, ebx
js 0x4a9da0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call fcn.005303b0
add esp, 0xc
jmp 0x4a9da0
push esi
call fcn.00424200
push esi
mov dword [esp + 0x7c], eax
call fcn.00424200
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xe4]
dec eax
add esp, 8
push eax
call fcn.004164c0
push eax
push ebx
call fcn.0043cba0
add esp, 0xc
test eax, eax
je 0x4aa04c
jmp 0x4a9a00
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push edx
push 0
push eax
call fcn.00431f80
inc dword [esp + 0x60]
add esp, 0xc
test eax, eax
je 0x4aa04c
test ebp, ebp
jne 0x4a9a46
mov ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.00414900
add esp, 8
test eax, eax
js 0x4aa04c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0
push edx
push 0
lea eax, [esp + 0x9c]
push eax
push esi
push ecx
call fcn.0041ef50
add esp, 0x18
test eax, eax
je 0x4aa04c
cmp ebx, edi
jle 0x4a9a7e
mov edx, ebx
sub edx, edi
lea esi, [esp + edx + 0x90]
jmp 0x4a9a85
lea esi, [esp + 0x90]
cmp ebx, edi
jge 0x4a9aa0
mov eax, edi
sub eax, ebx
push eax
lea ecx, [esp + ebx + 0x94]
push 0
push ecx
call fcn.00530a90
add esp, 0xc
mov edx, dword [esp + 0x2c]
or byte [esi], 0x80
or byte [esi + edi - 1], 1
push edx
push edi
push esi
call fcn.00416970
add esp, 0xc
test eax, eax
je 0x4aa04c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
xor eax, eax
test ebp, ebp
setne al
push esi
push eax
push ecx
push 0x32
push edx
call fcn.004323e0
add esp, 0x14
test eax, eax
jg 0x4a9b17
jne 0x4aa04c
test ebp, ebp
je 0x4a9a08
push 0x20d
push 0x594904
push 0x71
push 0x7e
push 0xa
mov dword [esp + 0x44], 0
call fcn.004126e0
add esp, 0x14
jmp 0x4aa04c
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a9b32
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.005303b0
add esp, 0xc
push 0
push 2
push esi
call fcn.00431f80
add esp, 0xc
test eax, eax
je 0x4aa04c
push 0
mov eax, esi
push 3
push eax
call fcn.00431f80
add esp, 0xc
test eax, eax
je 0x4aa04c
mov eax, dword [esp + 0xdc]
lea esi, [ebx*8]
xor ecx, ecx
dec eax
xor edx, edx
div esi
mov dword [esp + 0x3c], ecx
mov ebx, eax
lea esp, [esp]
test ecx, ecx
je 0x4a9b9c
push ecx
mov ecx, dword [esp + 0x20]
push 0
push ecx
call fcn.00431f80
add esp, 0xc
test eax, eax
je 0x4aa04c
mov edx, dword [esp + 0x50]
push 0
push edx
call fcn.00416910
add esp, 8
xor esi, esi
test ebx, ebx
js 0x4a9c6c
mov ebp, dword [esp + 0x14]
xor edi, edi
jmp 0x4a9bc0
lea eax, [ebp - 1]
test eax, eax
js 0x4a9bd8
mov ecx, dword [esp + 0x10]
jmp 0x4a9bd0
inc byte [eax + ecx]
jne 0x4a9bd8
dec eax
jns 0x4a9bd0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push 0
push eax
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x9c]
push ecx
push edx
push eax
call fcn.0041ef50
add esp, 0x18
test eax, eax
je 0x4aa04c
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
lea eax, [esp + 0x98]
push eax
call fcn.00416970
add esp, 0xc
test eax, eax
je 0x4aa04c
mov eax, dword [esp + 0x44]
push edi
push eax
push eax
call fcn.0043cba0
add esp, 0xc
test eax, eax
je 0x4aa04c
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
push ecx
push eax
push eax
call fcn.004263b0
add esp, 0xc
test eax, eax
je 0x4aa04c
mov eax, dword [esp + 0x40]
add eax, eax
add eax, eax
add eax, eax
inc esi
add edi, eax
cmp esi, ebx
jle 0x4a9bc0
mov eax, dword [esp + 0xdc]
mov esi, dword [esp + 0x50]
dec eax
push eax
push esi
call fcn.00416cf0
add esp, 8
test eax, eax
je 0x4aa04c
push esi
mov esi, dword [esp + 0x6c]
push esi
call fcn.00416790
add esp, 8
test eax, eax
je 0x4aa04c
mov edx, dword [esp + 0x4c]
push edx
push esi
push esi
call fcn.004263b0
add esp, 0xc
test eax, eax
je 0x4aa04c
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x44]
push eax
push ebp
call fcn.0043ca50
add esp, 8
test eax, eax
je 0x4aa04c
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x60]
push ecx
push ebp
push esi
push edi
push 0
call fcn.00431a50
add esp, 0x14
test eax, eax
je 0x4aa04c
call fcn.004164c0
push eax
push edi
push ebp
call fcn.004262e0
add esp, 0xc
test eax, eax
je 0x4aa04c
push ebp
push esi
mov esi, dword [esp + 0x7c]
push esi
call fcn.004262e0
add esp, 0xc
test eax, eax
je 0x4aa04c
mov edx, dword [esp + 0x4c]
push edx
push esi
call fcn.00416b20
add esp, 8
test eax, eax
js 0x4a9d51
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edi
push 1
push eax
push 0x32
push esi
call fcn.004323e0
add esp, 0x14
test eax, eax
jg 0x4a9d84
jne 0x4aa04c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0xdc]
inc ecx
lea eax, [edx*4]
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jl 0x4a9b80
cmp dword [esp + 0x58], 0
jne 0x4aa00e
mov edi, dword [esp + 0x70]
jmp 0x4a9a00
push 1
push 2
push edi
call fcn.00431f80
add esp, 0xc
test eax, eax
je 0x4aa04c
mov ebx, dword [esp + 0xf0]
call fcn.004164c0
mov edi, dword [esp + 0x4c]
push eax
push esi
push edi
call fcn.004262e0
add esp, 0xc
test eax, eax
je 0x4aa04c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push edi
push 0
push ebp
call fcn.00431a50
add esp, 0x14
test eax, eax
je 0x4aa04c
test ebx, ebx
jns 0x4a9df3
push 2
push edi
call fcn.00416910
add esp, 8
test eax, eax
je 0x4aa04c
jmp 0x4a9dfb
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
push eax
push esi
push ecx
call fcn.00469ec0
add esp, 0xc
test eax, eax
je 0x4aa04c
test ebx, ebx
js 0x4a9efb
mov eax, dword [esp + 0x20]
mov edx, eax
mov byte [esp + 0x92], al
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x80]
shr edx, 8
push ecx
mov byte [esp + 0x9c], bl
mov byte [esp + 0x9d], dl
call fcn.0041eaa0
add esp, 0xc
test eax, eax
je 0x4aa04c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0041ec50
add esp, 0xc
test eax, eax
je 0x4aa04c
push 4
lea edx, [esp + 0x7c]
push str.ggen.cryptodsadsa_gen.c
push edx
call fcn.0041ec50
add esp, 0xc
test eax, eax
je 0x4aa04c
push 3
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0041ec50
add esp, 0xc
test eax, eax
je 0x4aa04c
push 0
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.0041ec60
add esp, 0xc
test eax, eax
je 0x4aa04c
mov ecx, dword [esp + 0x40]
push edi
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.00416970
add esp, 0xc
test eax, eax
je 0x4aa04c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
push eax
push ecx
push esi
push ebp
push edi
push edx
call fcn.00441cb0
add esp, 0x18
test eax, eax
je 0x4aa04c
mov eax, dword [esp + 0x48]
cmp dword [eax + 4], 1
jne 0x4a9f6b
mov ecx, dword [eax]
cmp dword [ecx], 1
jne 0x4a9f6b
cmp dword [eax + 0xc], 0
jne 0x4a9f6b
test ebx, ebx
jns 0x4a9f50
call fcn.004164c0
push eax
push edi
push edi
call fcn.004263b0
add esp, 0xc
test eax, eax
je 0x4aa04c
inc dword [esp + 0x20]
test ebx, ebx
js 0x4a9efb
cmp dword [esp + 0x20], 0xffff
jbe 0x4a9e16
jmp 0x4aa04c
mov edx, dword [esp + 0x1c]
push 1
push 3
push edx
call fcn.00431f80
add esp, 0xc
test eax, eax
je 0x4aa04c
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x30], 1
cmp esi, eax
je 0x4a9fb0
test eax, eax
je 0x4a9fa4
push eax
call fcn.004165b0
add esp, 4
push esi
call fcn.00417010
add esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x2c]
cmp esi, eax
je 0x4a9fd4
test eax, eax
je 0x4a9fc8
push eax
call fcn.004165b0
add esp, 4
push esi
call fcn.00417010
add esp, 4
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4a9fe4
push eax
call fcn.004165b0
add esp, 4
mov eax, dword [esp + 0x48]
push eax
call fcn.00417010
add esp, 4
cmp dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
je 0x4aa004
cmp dword [edi + 0x10], 0
je 0x4aa004
test eax, eax
jne 0x4aa030
mov dword [esp + 0x30], 0xffffffff
jmp 0x4aa04c
push 0x266
push 0x594904
push 0x70
push 0x7e
push 0xa
mov dword [esp + 0x44], 0
call fcn.004126e0
add esp, 0x14
jmp 0x4aa04c
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4aa03e
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4aa04c
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aa05d
push eax
call fcn.00420800
add esp, 4
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x5c], eax
je 0x4aa070
push eax
call fcn.00420800
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4aa087
push esi
call fcn.004241c0
push esi
call fcn.00424140
add esp, 8
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x4aa09c
push eax
call fcn.00469e80
add esp, 4
lea eax, [esp + 0x68]
push eax
call fcn.0041ece0
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0x24]
add esp, 4
xor ecx, esp
call fcn.005310be
add esp, 0xc4
ret