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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x73c72d
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xac]
xor ebp, ebp
cmp eax, ebp
push edi
je 0x498549
lea ecx, [eax + 8]
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xac], ebp
mov eax, dword [esi + 0xb0]
cmp eax, ebp
je 0x498563
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
push 1
call dword [edx]
mov dword [esi + 0xb0], ebp
mov eax, dword [esi + 0xb4]
cmp eax, ebp
je 0x49857c
lea ecx, [eax + 8]
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xb4], ebp
mov eax, dword [esi + 0xb8]
cmp eax, ebp
je 0x498596
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
push 1
call dword [edx]
mov dword [esi + 0xb8], ebp
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov eax, dword [ecx + 0xac]
cmp eax, ebp
je 0x4985c6
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
push 1
call dword [edx]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov dword [ecx + 0xac], ebp
mov edx, dword [0x90536c]
mov eax, dword [edx + 0xc0]
mov ecx, dword [eax + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb4]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb4]
mov eax, dword [esi + 0xa0]
cmp eax, ebp
je 0x498640
xor ebx, ebx
cmp eax, ebp
jle 0x498640
xor edi, edi
nop
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax + edi + 4]
cmp ecx, ebp
je 0x498632
mov edx, dword [ecx + 8]
add ecx, 8
push 1
call dword [edx]
mov eax, dword [esi + 0xa4]
mov dword [eax + edi + 4], ebp
add ebx, 1
add edi, 0xc
cmp ebx, dword [esi + 0xa0]
jl 0x498610
mov eax, dword [esi + 0xa4]
cmp eax, ebp
je 0x49865c
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov dword [esi + 0xa4], ebp
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
xor bl, bl
add eax, 0xfffffffa
cmp eax, 9
mov dword [esi + 0xa0], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebp
ja case.0x49868f.12
jmp dword [eax*4 + 0x498f2c]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x905368]
mov ecx, dword [eax + 0x208d4]
mov edx, dword [eax + 0x208e8]
mov dword [esp + 0x14], ecx
mov dword [esi + 0xa0], edx
mov eax, dword [esi + 0xa0]
cmp eax, ebp
je 0x49870c
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
lea eax, [eax + eax*2]
push ebp
add eax, eax
push ebp
add eax, eax
push eax
call dword [edx + 8]
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xa0], ebp
mov dword [esp + 0x40], ebp
jle 0x498efa
lea esp, [esp]
cmp bl, 2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + edx*4]
mov dword [esp + 0x18], eax
jae 0x498dd8
movzx eax, bl
lea edx, [eax*8]
sub edx, eax
lea edx, [edx + edx*4]
add edx, edx
jmp 0x498deb
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x905368]
mov ecx, dword [eax + 0x208d8]
mov edx, dword [eax + 0x208ec]
mov dword [esp + 0x14], ecx
jmp 0x4986e1
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x905368]
mov ecx, dword [eax + 0x208e0]
mov edx, dword [eax + 0x208f0]
mov dword [esp + 0x14], ecx
jmp 0x4986e1
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x905368]
mov ecx, dword [eax + 0x208dc]
mov edx, dword [eax + 0x208f4]
mov dword [esp + 0x14], ecx
jmp 0x4986e1
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb8]
mov eax, dword [0x905368]
mov ecx, dword [eax + 0x208e4]
mov edx, dword [eax + 0x208f8]
mov dword [esp + 0x14], ecx
jmp 0x4986e1
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb4]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb4]
mov eax, dword [esi + 0x28]
add eax, 0xa
mov dword [esp + 0x24], eax
add eax, 0x13
push 0x12c
mov dword [esp + 0x24], 0x1e
mov dword [esp + 0x2c], 0x72
mov dword [esp + 0x30], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x38], ebp
je 0x49890b
push 1
mov ecx, eax
call fcn.00420620
mov edi, eax
jmp 0x49890d
xor edi, edi
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push str.editwnd_deciduous
mov dword [esp + 0x50], 0xffffffff
call fcn.00414e70
push eax
mov eax, dword [esi + 0x50]
push eax
push ebp
push 1
lea ecx, [esp + 0x3c]
push ecx
push esi
mov ecx, edi
call dword [ebx + 0x128]
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push ebp
push str.editwnd_deciduoussel
call fcn.00414e70
push eax
push 1
mov ecx, edi
call dword [ebx + 0x134]
mov dword [esi + 0xac], edi
mov edx, dword [0x905368]
test byte [edx + 0x208d0], 1
je 0x498990
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x13c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 5
mov dword [esp + 0x24], eax
add ecx, 0x54
add eax, 0x13
push 0x12c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x38], 1
je 0x4989d7
push 1
mov ecx, eax
call fcn.00420620
mov edi, eax
jmp 0x4989d9
xor edi, edi
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push str.editwnd_coniferous
mov dword [esp + 0x50], 0xffffffff
call fcn.00414e70
mov edx, dword [esi + 0x50]
push eax
push edx
push ebp
push 2
lea eax, [esp + 0x3c]
push eax
push esi
mov ecx, edi
call dword [ebx + 0x128]
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push ebp
push str.editwnd_coniferoussel
call fcn.00414e70
push eax
push 1
mov ecx, edi
call dword [ebx + 0x134]
mov dword [esi + 0xb0], edi
mov ecx, dword [0x905368]
test byte [ecx + 0x208d0], 2
je 0x498a5c
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x13c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 5
mov dword [esp + 0x24], eax
add ecx, 0x54
add eax, 0x13
push 0x12c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x38], 2
je 0x498aa3
push 1
mov ecx, eax
call fcn.00420620
mov edi, eax
jmp 0x498aa5
xor edi, edi
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push str.editwnd_dead
mov dword [esp + 0x50], 0xffffffff
call fcn.00414e70
mov edx, dword [esi + 0x50]
push eax
push edx
push ebp
push 3
lea eax, [esp + 0x3c]
push eax
push esi
mov ecx, edi
call dword [ebx + 0x128]
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push ebp
push str.editwnd_deadsel
call fcn.00414e70
push eax
push 1
mov ecx, edi
call dword [ebx + 0x134]
mov dword [esi + 0xb4], edi
mov ecx, dword [0x905368]
test byte [ecx + 0x208d0], 8
je 0x498b28
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x13c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 5
mov dword [esp + 0x24], eax
add ecx, 0x54
add eax, 0x13
push 0x12c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x38], 3
je 0x498b6f
push 1
mov ecx, eax
call fcn.00420620
mov edi, eax
jmp 0x498b71
xor edi, edi
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push str.editwnd_bush
mov dword [esp + 0x50], 0xffffffff
call fcn.00414e70
mov edx, dword [esi + 0x50]
push eax
push edx
push ebp
push 4
lea eax, [esp + 0x3c]
push eax
push esi
mov ecx, edi
call dword [ebx + 0x128]
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push ebp
push str.editwnd_bushsel
call fcn.00414e70
push eax
push 1
mov ecx, edi
call dword [ebx + 0x134]
mov dword [esi + 0xb8], edi
mov ecx, dword [0x905368]
test byte [ecx + 0x208d0], 0x10
je 0x498bf4
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x13c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 5
mov dword [esp + 0x24], eax
add ecx, 0x54
add eax, 0x13
push 0x12c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x38], 4
je 0x498c3b
push 1
mov ecx, eax
call fcn.00420620
mov edi, eax
jmp 0x498c3d
xor edi, edi
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push str.editwnd_palms
mov dword [esp + 0x50], 0xffffffff
call fcn.00414e70
mov edx, dword [esi + 0x50]
push eax
push edx
push ebp
push 5
lea eax, [esp + 0x3c]
push eax
push esi
mov ecx, edi
call dword [ebx + 0x128]
mov ecx, dword [0x894420]
mov ebx, dword [edi]
push 0xffffffffffffffff
push 0x78f490
push ebp
push ebp
push ebp
push ebp
push 0x79ba58
call fcn.00414e70
push eax
push 1
mov ecx, edi
call dword [ebx + 0x134]
mov dword [esi + 0xbc], edi
mov ecx, dword [0x905368]
test byte [ecx + 0x208d0], 0x20
je 0x498cc0
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 0x13c]
mov eax, dword [esi + 0x28]
add eax, 0x78
mov dword [esp + 0x24], eax
add eax, 0x33
push 0x12c
mov dword [esp + 0x24], 0x23a
mov dword [esp + 0x2c], 0x288
mov dword [esp + 0x30], eax
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebp
mov dword [esp + 0x38], 5
je 0x498d09
push 1
mov ecx, eax
call fcn.00420620
jmp 0x498d0b
xor eax, eax
mov ecx, dword [0x90536c]
mov edx, dword [ecx + 0xc0]
push 0xffffffffffffffff
push 0x78f490
push ebp
mov dword [edx + 0xac], eax
mov esi, dword [esi + 0x50]
mov eax, dword [0x90536c]
mov eax, dword [eax + 0xc0]
mov ecx, dword [eax + 0xac]
mov edx, dword [ecx]
push ebp
push esi
push ebp
push 0x1a
lea esi, [esp + 0x3c]
push esi
push eax
mov dword [esp + 0x5c], 0xffffffff
call dword [edx + 0x128]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
cmp dword [ecx + 0xd8], ebp
je 0x498d80
mov eax, dword [0x905368]
mov edx, dword [eax + 0x20900]
add edx, 1
push edx
call fcn.00493060
jmp 0x498f15
mov eax, dword [eax + 0xc0]
mov ecx, dword [eax + 0xdc]
add ecx, 1
push ecx
mov ecx, eax
call fcn.00493060
jmp 0x498f15
mov edx, dword [0x90536c]
mov eax, dword [edx + 0xc0]
mov ecx, dword [eax + 0xa4]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb4]
mov eax, dword [0x90536c]
mov ecx, dword [eax + 0xc0]
mov ecx, dword [ecx + 0xa8]
mov edx, dword [ecx]
push 1
call dword [edx + 0xb4]
jmp 0x498f15
movzx ecx, bl
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
lea edx, [edx + edx - 0x78]
movzx ecx, byte [esp + 0x12]
lea eax, [ecx + ecx*2]
lea ecx, [ecx + eax*8]
add ecx, ecx
add ecx, ecx
lea eax, [ecx + 0x50]
cmp eax, dword [esi + 0x2c]
jle 0x498e12
add byte [esp + 0x13], 1
xor bl, bl
xor edx, edx
mov byte [esp + 0x12], 0
xor ecx, ecx
movzx edi, byte [esp + 0x13]
mov eax, edi
shl eax, 4
sub eax, edi
lea eax, [eax + eax*4]
lea edx, [edx + eax*2 + 5]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
add ecx, 0x4f
add edx, 0x1d
add bl, 1
cmp bl, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
je 0x498e48
cmp bl, 4
jne 0x498e54
add byte [esp + 0x12], 1
cmp bl, 4
jne 0x498e54
xor bl, bl
push 0x12c
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x38], 6
je 0x498e7c
push 1
mov ecx, eax
call fcn.00420620
jmp 0x498e7e
xor eax, eax
mov ecx, dword [esi + 0xa4]
push 0xffffffffffffffff
mov dword [ecx + ebp + 4], eax
mov edx, dword [esi + 0xa4]
mov eax, dword [edx + ebp + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x14]
mov ecx, dword [0x894420]
mov edi, dword [eax]
push 0x78f490
push 0
push 0
push 0
push edx
mov dword [esp + 0x50], 0xffffffff
call fcn.00414e70
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0xa4]
push 0
push ecx
mov ecx, dword [eax + ebp + 4]
lea edx, [esp + 0x3c]
push edx
push esi
call dword [edi + 0x128]
mov eax, dword [esp + 0x40]
add eax, 1
add ebp, 0xc
cmp eax, dword [esi + 0xa0]
mov dword [esp + 0x40], eax
jl 0x498720
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x498f15
mov ecx, dword [0x905368]
mov eax, dword [eax]
mov edx, dword [ecx]
push ebp
push ebp
push eax
call dword [edx + 0x164]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4