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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4d0ec3
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], esi
call fcn.00483100
test eax, eax
je 0x4852bc
or eax, 0xffffffff
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x2c]
call fcn.00491850
xor ebx, ebx
lea ecx, [esp + 0x60]
mov dword [esp + 0x100], ebx
call fcn.00491850
lea ecx, [esp + 0x98]
mov byte [esp + 0x100], 1
call fcn.00491850
mov eax, dword [esi + 0x1c]
cmp eax, ebx
mov byte [esp + 0x100], 2
jne 0x485300
mov dword [esp + 0x24], ebx
jmp 0x48530a
mov eax, dword [eax - 0xc]
shr eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
cmp eax, ebx
jne 0x485317
mov dword [esp + 0x44], ebx
jmp 0x485321
mov eax, dword [eax - 0xc]
shr eax, 2
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x44]
test edi, edi
mov dword [esp + 0x5c], ebx
jle 0x48590f
jmp 0x485337
mov esi, dword [esp + 0x28]
push ebx
lea ecx, [esi + 0x20]
call fcn.00492900
mov esi, eax
test esi, esi
mov dword [esp + 0x48], esi
jne 0x485387
cmp dword [ebp + 0xc], 2
je 0x4858fc
lea ecx, [esp + 0x60]
call fcn.00491bf0
push 0xffffffffffffffff
push str.record
lea ecx, [esp + 0x6c]
call fcn.00473ec0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x64], 0x30
call fcn.00491b40
jmp 0x4858fc
mov edi, dword [ebp + 0xc]
cmp edi, 2
jne 0x4853a4
mov eax, dword [esi + 0xc]
and eax, 0xff
cmp eax, edi
je 0x4853a4
cmp eax, 4
jne 0x4858fc
lea ecx, [esp + 0x60]
call fcn.00491bf0
push 0xffffffffffffffff
push str.record
lea ecx, [esp + 0x6c]
call fcn.00473ec0
cmp edi, 1
mov dword [esp + 0x60], 0x30
je 0x4853d3
cmp edi, 2
jne 0x4854c3
mov eax, dword [esi + 0xc]
and eax, 0xff
cmp eax, 2
jne 0x485449
push 0xffffffffffffffff
push str.insert
lea ecx, [esp + 0x60]
call fcn.004748c0
push 0xffffffffffffffff
push 0x513b28
lea ecx, [esp + 0x58]
mov byte [esp + 0x108], 3
call fcn.004748c0
push 0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x10c], 4
call fcn.00491ae0
lea ecx, [esp + 0x50]
mov byte [esp + 0x100], 3
call fcn.004732d0
lea ecx, [esp + 0x58]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x4854c3
cmp eax, 4
jne 0x4854b7
push 0xffffffffffffffff
push str.update
lea ecx, [esp + 0x5c]
call fcn.004748c0
push 0xffffffffffffffff
push 0x513b28
lea ecx, [esp + 0x54]
mov byte [esp + 0x108], 5
call fcn.004748c0
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x10c], 6
call fcn.00491ae0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x100], 5
call fcn.004732d0
lea ecx, [esp + 0x54]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x4854c3
cmp eax, 8
je 0x4858fc
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x4856a3
mov ecx, dword [esp + 0x28]
push ebx
add ecx, 0x14
call fcn.00492900
mov edi, eax
test edi, edi
je 0x485693
lea ecx, [esp + 0x2c]
call fcn.00491bf0
push edi
lea ecx, [esp + 0x34]
call fcn.00474c20
lea ecx, [esp + 0x3c]
call fcn.00473330
push ebx
mov ecx, esi
call fcn.00499f90
mov esi, eax
test esi, esi
je 0x485679
movzx eax, word [esi]
test ax, ax
je 0x485679
cmp ax, 8
jne 0x485540
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x485533
cmp word [ecx], 0
jne 0x485540
mov dword [esp + 0x2c], 0x30
jmp 0x485681
cmp ax, 7
mov dword [esp + 0x2c], 0x33
jne 0x485599
push 0
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0xc4]
push eax
mov ecx, esi
call fcn.0047e280
mov ecx, eax
call fcn.00495b20
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], 7
call fcn.00474c20
lea ecx, [esp + 0x90]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x485681
cmp ax, 5
jne 0x485603
fld qword [esi + 4]
sub esp, 8
fstp qword [esp]
call fcn.0047cc40
add esp, 8
test eax, eax
jne 0x485681
mov ecx, dword [ebp + 0x10]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0xc4], esp
push esi
call fcn.0047d510
lea edx, [esp + 0x9c]
push edx
call fcn.004851c0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], 8
call fcn.00474c20
lea ecx, [esp + 0x88]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x485681
cmp word [edi + 4], 9
jne 0x485648
lea eax, [esp + 0x94]
push eax
lea ecx, [esi + 4]
call fcn.00474ce0
mov eax, dword [eax]
push 0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x10c], 9
call fcn.00473f20
lea ecx, [esp + 0x94]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x485681
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.0047de50
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], 0xa
call fcn.00474c20
lea ecx, [esp + 0x78]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x485681
mov dword [esp + 0x2c], 0x31
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x64]
call fcn.00491b40
mov esi, dword [esp + 0x48]
add ebx, 1
cmp ebx, dword [esp + 0x24]
jl 0x4854cf
mov edi, dword [ebp + 0xc]
cmp edi, 1
je 0x4856b1
cmp edi, 2
jne 0x4858eb
cmp byte [esi + 0xc], 4
jne 0x4858eb
mov eax, dword [esi + 0x10]
test eax, eax
jl 0x4858eb
mov ecx, dword [esp + 0x28]
push eax
add ecx, 0x2c
call fcn.00492900
mov esi, eax
test esi, esi
mov dword [esp + 0x48], esi
je 0x4858eb
lea ecx, [esp + 0x98]
call fcn.00491bf0
push 0xffffffffffffffff
push str.org_record
lea ecx, [esp + 0xa4]
call fcn.00473ec0
xor ebx, ebx
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x98], 0x30
jle 0x4858da
mov ecx, dword [esp + 0x28]
push ebx
add ecx, 0x14
call fcn.00492900
mov edi, eax
test edi, edi
je 0x4858cd
lea ecx, [esp + 0x2c]
call fcn.00491bf0
push edi
lea ecx, [esp + 0x34]
call fcn.00474c20
lea ecx, [esp + 0x3c]
call fcn.00473330
push ebx
mov ecx, esi
call fcn.00499f90
mov esi, eax
test esi, esi
je 0x4858b0
movzx eax, word [esi]
test ax, ax
je 0x4858b0
cmp ax, 8
jne 0x485788
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48577b
cmp word [ecx], 0
jne 0x485788
mov dword [esp + 0x2c], 0x30
jmp 0x4858b8
cmp ax, 7
mov dword [esp + 0x2c], 0x33
jne 0x4857e1
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call fcn.0047e280
mov ecx, eax
call fcn.00495b20
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], 0xb
call fcn.00474c20
lea ecx, [esp + 0x84]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x4858b8
cmp ax, 5
jne 0x48583a
fld qword [esi + 4]
sub esp, 8
fstp qword [esp]
call fcn.0047cc40
add esp, 8
test eax, eax
jne 0x4858b8
lea edx, [esp + 0x8c]
push edx
mov ecx, esi
call fcn.0047de50
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], 0xc
call fcn.00474c20
lea ecx, [esp + 0x8c]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x4858b8
cmp word [edi + 4], 9
jne 0x485879
lea eax, [esp + 0x7c]
push eax
lea ecx, [esi + 4]
call fcn.00474ce0
mov eax, dword [eax]
push 0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x10c], 0xd
call fcn.00473f20
lea ecx, [esp + 0x7c]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x4858b8
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.0047de50
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x104], 0xe
call fcn.00474c20
lea ecx, [esp + 0x80]
mov byte [esp + 0x100], 2
call fcn.004732d0
jmp 0x4858b8
mov dword [esp + 0x2c], 0x31
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x9c]
call fcn.00491b40
mov esi, dword [esp + 0x48]
add ebx, 1
cmp ebx, dword [esp + 0x24]
jl 0x485717
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x64]
call fcn.00491b40
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00491b40
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x44]
add ebx, 1
cmp ebx, edi
mov dword [esp + 0x5c], ebx
jl 0x485333
lea ecx, [esp + 0x98]
mov byte [esp + 0x100], 1
call fcn.004926f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x100], 0
call fcn.004926f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x100], 0xffffffff
call fcn.004926f0
mov eax, edi
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc