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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x4adcc3
mov dword [ebp - 0x3c], 0xffffffec
jmp 0x4ae199
mov esi, edx
mov edi, ecx
mov eax, dword [ebp - 0x40]
call fcn.004adc30
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
call fcn.004adc13
mov ebx, eax
test eax, eax
je 0x4adcb7
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x20]
xor edx, edx
mov dword [esp], edx
mov edx, edi
call fcn.004a494a
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4ae199
lea ecx, [ebp - 0x30]
mov eax, dword [ebx + 0x20]
xor edx, edx
mov dword [esp], edx
mov edx, edi
call fcn.004a4791
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4ae199
mov eax, dword [ebp - 0x28]
mov word [eax + 2], si
xor esi, esi
mov edx, 0x73626173
cmp esi, 1
je 0x4add4b
mov edx, 0x7363616c
cmp esi, 2
je 0x4add4b
mov edx, 0x64706e64
lea ecx, [ebp - 0x2c]
mov eax, ebx
call fcn.004adc62
test eax, eax
je 0x4add65
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x4ae199
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4add8c
cmp dword [eax + 0x1c], 1
je 0x4add7e
mov dword [ebp - 0x3c], 0xffffffea
jmp 0x4ae199
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
mov eax, dword [ebp - 0x28]
mov word [eax + 6], dx
jmp 0x4add9b
mov eax, dword [ebp - 0x28]
mov word [eax + 6], 0
inc esi
cmp esi, 3
jne 0x4add32
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x4addd5
xor edi, edi
mov dword [ebp - 0x1c], edi
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x18]
call fcn.00425f4e
test eax, eax
je 0x4addd5
cmp dword [eax], 0x41555856
jne 0x4adda7
mov eax, 0x81
call fcn.004b21c0
mov edx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
call fcn.00425c52
xor esi, esi
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x2c]
mov edx, 0x73796e63
mov eax, ebx
call fcn.004adc62
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4add59
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4ade13
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + 0x30]
mov esi, dword [ebp - 0x28]
cmp dword [edx + 0x9c], 0
jns 0x4ade98
jmp 0x4ade85
cmp dword [eax + 0x1c], 1
jne 0x4add72
mov esi, dword [ebp - 0x28]
mov edx, dword [eax + 0x20]
mov edx, dword [edx]
mov word [esi + 4], dx
mov edi, dword [ebx + 0x34]
mov dword [ebp - 0x48], edi
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
mov eax, edi
call fcn.0049afc5
mov edi, eax
test eax, eax
je 0x4addfb
lea ecx, [ebp - 0x2c]
mov edx, 0x73796e63
mov eax, edi
call fcn.004adc62
test eax, eax
jne 0x4addfb
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4addfb
cmp dword [eax + 0x1c], 0
je 0x4addfb
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4adebc
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x30]
cmp edx, eax
je 0x4adebc
movzx ecx, word [esi + 2]
cmp eax, ecx
je 0x4addfb
mov eax, dword [ebp - 0x48]
jmp 0x4ade36
movzx eax, word [esi + 4]
test ax, ax
jne 0x4ade92
movzx eax, word [esi + 2]
mov dword [edx + 0x9c], eax
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x4adeac
mov word [esi + 4], ax
mov ax, word [esi + 2]
cmp word [esi + 4], ax
jne 0x4adebc
mov word [esi + 4], 0
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4adf0b
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
mov edx, 0x69706972
mov eax, ebx
call fcn.004adc62
test eax, eax
jne 0x4add59
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4adcb7
cmp byte [esi], 0x12
jne 0x4adcb7
movzx edx, word [esi + 2]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + edx*4 - 4]
mov word [esi + 2], ax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov byte [eax], 9
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x1c]
cmp word [eax + 0x48], 0x6e75
jne 0x4adf1f
cmp byte [eax + 0x4a], 0x64
je 0x4adf76
mov esi, dword [ebp - 0x28]
cmp dword [esi + 0x24], 0
jne 0x4adf35
mov eax, 0x43
call fcn.004b21c0
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x24]
mov ecx, dword [ebx + 0x20]
mov ecx, dword [ecx + 0x1c]
movsx ecx, byte [ecx + 0x48]
mov dword [edx + 4], ecx
mov edx, dword [eax + 0x24]
shl dword [edx + 4], 8
mov edx, dword [eax + 0x24]
mov ecx, dword [ebx + 0x20]
mov ecx, dword [ecx + 0x1c]
movsx ecx, byte [ecx + 0x49]
or dword [edx + 4], ecx
mov edx, dword [eax + 0x24]
shl dword [edx + 4], 8
mov eax, dword [eax + 0x24]
mov edx, dword [ebx + 0x20]
mov edx, dword [edx + 0x1c]
movsx edx, byte [edx + 0x4a]
or dword [eax + 4], edx
mov eax, dword [ebp - 0x40]
mov edi, dword [eax + 0x30]
mov edx, dword [ebp - 0x44]
mov eax, edi
call fcn.0049b00f
test eax, eax
je 0x4ae055
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00425c8e
test eax, eax
je 0x4ae055
cmp dword [eax + 0x34], 0x76696465
jne 0x4ae055
mov eax, dword [eax + 0x90]
test eax, eax
je 0x4ae055
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4adfe2
mov eax, dword [ebp - 0x28]
mov edi, dword [eax + 0x10]
test si, si
je 0x4ae012
mov word [edi + 0x1c], si
jmp 0x4ae055
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], eax
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov eax, edi
call fcn.004a916a
test eax, eax
jne 0x4ae055
jmp 0x4adfd1
mov eax, 5
call fcn.004b21c0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4ae03a
mov dword [esp + 4], str.application_rvc_configxmlgz
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x4ae055
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
jne 0x4ae194
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx]
cmp ecx, 0x6d703473
je 0x4ae08c
cmp ecx, 0x6d703476
je 0x4ae084
cmp ecx, 0x6d703461
jne 0x4ae0ad
mov esi, dword [edx + 0x78]
jmp 0x4ae08f
mov esi, dword [edx + 0x98]
jmp 0x4ae08f
mov esi, dword [edx + 0x40]
test esi, esi
je 0x4ae0ad
mov eax, dword [eax + 0x14]
call fcn.004b23d9
mov eax, dword [ebp - 0x28]
lea edx, [eax + 0x14]
mov eax, esi
call fcn.004b55da
jmp 0x4ae191
mov edx, dword [eax + 0x14]
mov byte [edx + 0x14], 0x20
mov edx, dword [eax + 0x14]
mov ecx, dword [ebx + 0x20]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x30]
mov dword [edx + 0xc], ecx
mov edx, dword [eax + 0x14]
mov byte [edx + 0x15], 0
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov dword [edx + 0x10], ecx
mov edx, dword [ebx + 0x20]
mov edx, dword [edx + 0x24]
mov esi, dword [edx + 0x1c]
mov edx, dword [eax + 0x14]
cmp dword [esi + 0x24], 0
jne 0x4ae129
mov edi, dword [ebp - 0x40]
cmp dword [edi + 0x24], 0
je 0x4ae11c
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 8], 4
jne 0x4ae11c
mov byte [edx + 5], 0
mov eax, dword [eax + 0x14]
mov byte [eax + 4], 1
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x30]
cmp byte [eax + 0x18], 1
je 0x4ae13b
mov eax, 0x73747373
call fcn.00497474
mov dword [esi + 0x24], eax
jmp 0x4ae13b
mov byte [edx + 5], 1
mov eax, dword [eax + 0x14]
mov byte [eax + 4], 0
jmp 0x4ae13b
mov byte [edx + 5], 0
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 0x24]
cmp dword [edx + 0x24], 0
setne byte [eax + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14]
mov dl, 0xf
cmp dword [esi + 0x3c], 0
jne 0x4ae14b
xor edx, edx
mov byte [ecx + 0x18], dl
cmp dword [esi + 0x40], 0
je 0x4ae15b
mov edx, dword [eax + 0x14]
mov byte [edx + 6], 1
mov eax, dword [eax + 0x14]
mov byte [eax + 3], 1
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x14]
mov byte [eax + 2], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x14]
cmp dword [esi + 0x40], 0
setne byte [edx + 6]
mov ecx, dword [eax + 0x14]
cmp dword [esi + 0x3c], 0
setne dl
shl edx, 5
mov byte [ecx + 0x18], dl
mov eax, dword [eax + 0x14]
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret